6 Answers, 1 is accepted
Indeed the success event is fired once for each file and the complete event is fired after all files are uploaded. This behavior could be observed in our events demo.
If the problem is still persisting, please send me a small runnable isolated example, which demonstrates the issue, so I could assist you further.
I am looking forward to hearing from you.
Hello Dimiter, the event Complete is fired every file when chunk upload is enabled.
Are there other ways to know when all files has been uploaded?
I have prepared a Dojo example which demonstrates a possible workaround. In the complete event, you can get the count of the items that are in the upload file list. You can also get the items which have already been uploaded (or have failed uploading):
You can then compare if their count is equal. If it is, then all the files are loaded.
Don't hesitate to ask if you have questions regarding the suggested approach.
In the sample, if you use it exactly as copied, success is called after each success, however if you don't use the progress event the success is only called once at the end. If this is working as intended, this is confusing.