I am using jQuery-File-Upload to upload file asynchronously. But, I found that the add files button will keep adding files every time it select.
For example firstly I select File1.txt and click the summit. Then the second time , I add File2.txt and the selected file will be both File1.txt and File2.txt ! So when I click submit, the second time I will upload two files!
I would like to know how to get access to variable where the file-upload plugin store files to be submited, so I can emptify the variable in
done: function(e, result){
....
}
I knew there is a change callback, yet what the change callback received ( data.files) contain only the files selected this time, not the whole file list to be submitted.
I still have not solved this problem , I found my situation is the same as this POST and it's the same as this
Yet, nobody have found a satifatory answer. Though there are tricks to workaround.