i use jquery file upload plugin, when i browse some files and add them to list everything is going well. After that when i browse some more files and submit, plugin sends two ajax requests. Because i browsed twice.
Is there any option to set this?
I also set the parameter singleFileUploads:false
-
Did you ever figure this out, I'm actually facing the same problem right now :). I don't think it's related to browsing, I think it's related to something caching.Brad– Brad2013-05-20 18:56:54 +00:00Commented May 20, 2013 at 18:56
-
No, the plugin creates an instance for every trigger browse. I solved the problem by changing my back-end server.saidozcan– saidozcan2013-05-21 13:45:21 +00:00Commented May 21, 2013 at 13:45
Add a comment
|
2 Answers
The only way it would be able to send the files in one go is it were using html5 FormData. It is probably not using that.
You have to learn how ajax files uploads work under the hood to be able to answer your question. There are hidden file inputs that get filled with your selected files every time you hit browse. If it were a single file input you would overwrite your previous selection.
Your only hope is html5 file upload api, but its not available on most IE so its probably not being used by this plugin