First say IE9, click Upload, the browser will prompt to download content.
cause : IE9 and the following upload file of the response header contenttype if it is JSON, the browser will think it is a file download.
Processing Method : Find backstage GG, change contenttype to text/html.
Then modify the Done method to get the address
function (E, data) { var result = data.result[0].body? data.result[0].body.innerhtml:data.result; = Json.parse (result); /* your own code. */ }
Besides IE8, after clicking Upload, the File selection box appears, but after clicking Confirm, the browser will not send AJAX requests.
reason : IE8 for security reasons, only by directly clicking <input type= "file" > to upload files. What I did was to hide input and trigger the Click event of input with another button.
processing method : Put another button outside a label, set for= "", associated with input.
Note : Input still cannot be set to Display:none, otherwise IE8 still not recognize. So my approach is to set the width of input to 1px, the transparency is set to 0. or set Z-index, put it at the bottom, but I haven't practiced this method yet.
Jquery-fileupload Ie8ie9 can't upload a picture and how to customize the style to Input[type=file]