This is a migrated thread and some comments may be shown as answers.

OnClientFilesUploaded

1 Answer 109 Views
AsyncUpload
This is a migrated thread and some comments may be shown as answers.
Michael
Top achievements
Rank 1
Michael asked on 08 Dec 2015, 03:46 PM

My understanding is that OnClientFilesUploaded will fire when all files in the list have been uploaded.  However, if you queue up several files (drag and drop)... and then later (while the first set is still uploading) queue up a second set of files (drag and drop); the OnClientFilesUploaded event will trigger after the first set of files is finished uploading and not after all files have finished uploading.

 

I have a full postback happening in my OnClientFilesUploaded handler which causes any other queued up files to be removed from the list.  Can the OnClientFilesUploaded be changed to only fire when all files in the list have been uploaded?  And not after the first set is complete?

 

Tested on IE 11 and Chrome.

1 Answer, 1 is accepted

Sort by
0
Ivan Danchev
Telerik team
answered on 11 Dec 2015, 01:40 PM
Hello Michael,

I am afraid the chain of events cannot be changed. Every file selection/drop (or multiple file selection/drop) is a separate upload and starts its own chain of events starting with OnClientFileSelected/OnClientFileDropped -> OnClientFileUploading -> etc. until the OnClientFilesUploaded is fired if the upload is successful.

Regards,
Ivan Danchev
Telerik
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
Tags
AsyncUpload
Asked by
Michael
Top achievements
Rank 1
Answers by
Ivan Danchev
Telerik team
Share this question
or