jQuery File Upload not using XHR or IFrame

时间:2015-11-12 11:26:46

标签: jquery file upload jquery-file-upload blueimp

I have an upload solution using a setup similar to this one where people can drag a file onto the page and have it upload to S3.

However, I'm hitting an issue with XHR/Iframe upload. Essentially, if I leave out forceIframeTransport the file will get uploaded to S3 successfully, but the entire page ends up on S3, as that's where the form has submitted to.

When I include forceIframeTransport set to true, nothing happens. There are no exceptions in the console, nothing happening on the server.

I have included jquery.iframe-transport, jquery.ui.widget and jquery.fileupload in the page, in that order.

1 个答案:

答案 0 :(得分:0)

如果没有发布您的代码,很难说,但可能与此问题类似iframe transport isn't transferring any data

他们正在使用“花哨”按钮而不是常规按钮并嘲笑onclick。

发布您的代码,您可能会得到更好的答案,或者如果它与您发送的链接相同,那么请告诉我们它与该代码完全相同。不过,看到代码总是好的。