Post upload processing?
I noticed after the progress bar hits 100%, it takes a while to get 'done' callback. It depends on the size of the file, usually the bigger the file is, the longer it takes to get the callback. I am currently using S3 to store my files, does it have something to do with the library itself or S3? Besides, if I tried to fetch that file before I receive the callback, it would take forever to get the response (I assume there is some sort of channel occupied between me and S3?)
If this problem is not solvable, is there a way to detect the gap between 100% and 'done' callback so I can show some sort of information like 'Processing, please wait' etc?
Thanks in advance.
The time gap between the end of the upload progress and the invocation of the done callback depends entirely on your server-side implementation, i.e. how long it takes to process the uploaded file. The browser simply tracks how much of the file has been uploaded and then waits for the server response.
If you want to narrow the gap, you have to improve the performance of your server-side implementation to simply return a response faster. Since you are using Amazon S3 this is probably not possible.
Thanks, but is there a way for "done" to tell the file uploaded is the last file left in the queue?
Sorry I am kinda new to javascript.
Please have a look at the stop (or fileuploadstop) callback - see: https://github.com/blueimp/jQuery-File-Upload/wiki/API https://github.com/blueimp/jQuery-File-Upload/wiki/Options
Thanks!