Whenever I try to upload using Blueimp jQuery File Upload on Internet Explore 6/9, ASP.NET cannot find the files in the request. I have basic code which looks like
[HttpPost]
public JsonResult Images()
{
HttpPostedFileBase file = Request.Files[0] as HttpPostedFileBase;
}
My jQuery looks like:
$('#fileupload').fileupload({
//forceIframeTransport: true,
//contentType: 'multipart/form-data',
//replaceFileInput: false,
//contentType: 'text/plain',
//dataType: 'text/plain',
url: '@Url.Action("Images", "Upload")',
//autoUpload: true,
done: function (e, data) {
$('.file_result').html('');
$('.file_result').append(data.result.text + "<br>");
}
});
The first part is when it's working and the second is when I'm using IE7-9.
