Multiple Files Uploaded in Click Order as oppose to Alphabetic Order

4 posts, 0 answers
  1. Glenn
    Glenn avatar
    47 posts
    Member since:
    Nov 2011

    Posted 29 May 2014 Link to this post

    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

  2. Hristo Valyavicharski
    Admin
    Hristo Valyavicharski avatar
    975 posts

    Posted 02 Jun 2014 Link to this post

    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.

     
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Glenn
    Glenn avatar
    47 posts
    Member since:
    Nov 2011

    Posted 02 Jun 2014 in reply to Hristo Valyavicharski Link to this post

    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.
     
  5. Hristo Valyavicharski
    Admin
    Hristo Valyavicharski avatar
    975 posts

    Posted 04 Jun 2014 Link to this post

    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.

     
Back to Top