Jump to content

image upload sort order


bernhard
 Share

Recommended Posts

this is a general question to core image field usability

what i have always found a little bit annoying was that on uploading images via ajax the sort order is changed:

any ideas how this could be fixed? it is not really nice if one uploads images from an event and the closing ceremony appears before the event's beginning...

uploading files as zip would work, but that's no option if you want to upload files for an image gallery as the zip would likely grow over the maximum allowed filesize rapidly.

Link to comment
Share on other sites

hi soma,

of course i've already searched the forum:

https://processwire.com/talk/topic/5362-explicitly-set-image-sort-order/

https://processwire.com/talk/topic/5168-zipupload-images-and-sortorder-in-imagesfield/

especially this one: https://processwire.com/talk/topic/4587-sort-images-by-title-in-image-inputfield/

but i don't think that's a really good solution because you would totally lose the manual sorting feature from the backend if i am right?! wouldn't it be better if the images were stored in the same order they were uploaded?

the problem is, that the images are different in filesize so on upload some images will be faster on the server than others and therefore "overtaking" them during ajax upload. i think the core image field should somehow store the initial order on the client side and map that on the server side.

what do you all think? have you never had issues with changed sort order in your image fields?

Link to comment
Share on other sites

thank you soma, that's a quite recent post - don't know how i missed that! it's not exactly what i wanted but as i'm thinking a bit of it i think sorting by filename makes possibly more sense than sorting by upload time. images from cameras will always be named ascendingly and with your linked solution also the manual sort feature is preserved!

thank you :)

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...