Jump to content

Retain alphabetical order of multifile uploads


interrobang
 Share

Recommended Posts

When uploading a bunch of files (via ajax / drag-and-drop) the files are added in alphabetical sort order, but as soon as a single file upload is completed order changes and the complete file is added right before the yet uncompleted files.

Is it possible to change this behaviour? As a workaround i currently zip the files before uploading and check the "Decompress ZIP files?" option, which seems to add the unzipped files in alphabetical order.

Link to comment
Share on other sites

I don't see any other way than wait for all the download and then re-arrange them..? One possibility might be trying to start uploads in alphabetical order, but then the b-file might be much smaller in filesize than a-file and it would load first anyways...

So no easy solutions comes into my mind.

Link to comment
Share on other sites

I thinks the files are already starting in alphabetical order, at least in my browser. The only solution which comes to my mind is to populate the WireArray right after the file selection is finished with dummy images and replace these once the upload completes. But this sounds like a dirty hack to me..

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...