The folowing post is related to: How to send image to PHP file using Ajax?
I managed to get this working as per the above post, but it fails to work on IE8.
Is there a way to get this to work on ie8+?
Here is my code:
$("form[name='uploader']").submit(function(e) { var formData = new FormData($(this)[0]); $.ajax({ url: dotnetpage, type: "POST", data: formData, async: false, success: function (msg) { $('.js-ugc-image').attr('src', msg); }, cache: false, contentType: false, processData: false }); e.preventDefault(); });