jquery file upload - IE done callback data.result issue

后端 未结 8 749
借酒劲吻你
借酒劲吻你 2020-12-01 05:41

I\'m using jQuery file upload plugin.

I don\'t use the UI part, only basic one.

When I do the following, I\'m having an issue in

8条回答
  •  爱一瞬间的悲伤
    2020-12-01 06:02

    Actually this is what the jquery.iframe-transport.js is for (the basic version also include this plugin as additional reference). What you need is to set the dataType property to json and the jquery.iframe-transport plugin will automatically parse the iframe result, so you can have the same logic in your done handler.

    $('#fileupload').fileupload({
    ...
        dataType: 'json'
    ...
    });
    

提交回复
热议问题