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

Multiple Files Uploaded in Click Order as oppose to Alphabetic Order

3 Answers 38 Views
AsyncUpload
This is a migrated thread and some comments may be shown as answers.
Glenn
Top achievements
Rank 1
Glenn asked on 29 May 2014, 05:34 AM
Have an AsyncUpload control with MultipleFileSelection set to Automatic.  User can upload multiple images which are previewed in a listview and user can remove or reorder the images before final save.

Seems the AsyncUpload control uploads the files in alphabetic order as oppose to the order that the user has clicked.
Is there any setting or way to make the upload of the files in the order that the user has clicked using Ctrl Mouse Click?

Thanks

Glenn

3 Answers, 1 is accepted

Sort by
0
Hristo Valyavicharski
Telerik team
answered on 02 Jun 2014, 10:42 AM
Hi Glenn,

The AsyncUpload always uploads files according to the selecting order. You can test this by handling the OnClientFileUpload event:
function OnClientFileUploaded(sender, args) {
    console.log(args.get_fileName());
}


Regards,
Hristo Valyavicharski
Telerik
 

Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

 
0
Glenn
Top achievements
Rank 1
answered on 02 Jun 2014, 11:02 PM
Interesting, as testing on Telerik Multiple File Selection Demo does as follows:-

Order I clicked using Ctrl Mouse Click was:  Tiger, Koala, Rabbit, Lion.
See attached file called "clicked" and see the order that presents as Lion, Rabbitt, Tiger, Koala (Seems random).
See result uploading file attached called "uploading1" and see first file uploading is "Koala".
See result uploading file attached called "uploading2" and see last file being streamed is "Tiger".
And I can tell you that when watching the files upload they upload as per Alphabetic order.

Maybe this is something to do with my Local pc? 

I haven't tried your debug suggestion yet, will do that next.
 
0
Hristo Valyavicharski
Telerik team
answered on 04 Jun 2014, 02:35 PM
Glenn,

Same happen at my side. This is the default behavior of the Windows. I don't think you can change it.

You can reproduce it with the standard html file input:

<input type="file" multiple="multiple" />


Regards,
Hristo Valyavicharski
Telerik
 

Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

 
Tags
AsyncUpload
Asked by
Glenn
Top achievements
Rank 1
Answers by
Hristo Valyavicharski
Telerik team
Glenn
Top achievements
Rank 1
Share this question
or