jQuery-File-Upload not firing done callback in Internet Explorer (IE9)

后端 未结 2 1620
甜味超标
甜味超标 2021-01-12 09:04

i checked some questions regarding the same issue, blueimp jquery file upload - "done", "complete" callbacks not working for IE 9 , but even after puttin

2条回答
  •  粉色の甜心
    2021-01-12 09:22

    ok so i go it working.The problem was that in the fileuploader configuration i had

    dataType: 'json'
    

    but since IE9 uses the iframe it makes a html request, and the response has the Content-Type 'text/html'. With that configuration the fileuploader is expecting to receive a json response so my response was going to a fail callback i made just for testing. Got it working by looking at this post jQuery FileUpload doesn't trigger 'done'

提交回复
热议问题