When I upload the following images:

image-001.jpg
image-002.jpg
image-003.jpg
image-004.jpg

I expect them to be saved in that order. And indeed, sometimes that does happen. But just as often, I might get

image-004.jpg
image-003.jpg
image-002.jpg
image-001.jpg

Or even more inexplicable:

image-001.jpg
image-004.jpg
image-002.jpg
image-003.jpg

After much experimentation, I cannot find any pattern to the order outcome. The only thing I can think is that maybe images with smaller file sizes can sometimes be saved into the array before larger ones?

This unpredictable behavior is very frustrating. I've searched the issue queue high and low and not seen any other threads discussing this. Am I the only one having this problem? Am I the only one who wants to preserve order upon uploading?

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

dsnydernc’s picture

You aren't alone... the order seems to be totally random and does not match either the file name or the order in which they were uploaded. Makes no sense. Like you, sometimes they show in order on the node, and sometimes they don't. I'd say about 50/50.

moshah’s picture

You definitely aren't alone - I'm trying to figure out a way to get them in order consistently, but I'm having no luck. It would be great if the order of the upload is the order of the creation. (or better yet, if the date/time of creation was set to the EXIF create date of the image.)

grandcat’s picture

Version: 6.x-2.2 » 6.x-3.x-dev
Status: Active » Fixed

Should be fixed. Please do some testing with the dev release.
The order is now the same like the images are uploaded to the server.

Anonymous’s picture

Status: Fixed » Active

The Final order and Upload order appear to be the same, however the order when initially editing "description" is reversed.

Anonymous’s picture

Status: Active » Fixed

Please ignore my last comment

Plan download dev,
Intent install dev
Action install RC !

My error, works fine

grandcat’s picture

Thanks.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.

skizzo’s picture

Status: Closed (fixed) » Active

I am reopening this issue as I still see a image order problem. I am using image_fupload_imagefield (creating one node per image) and CCK 6.x-2.6. I did many uploads (10-40 images each, totaling 1500 images) without encountering any problem, but then I started seeing wrong ordering. After many re-attempts it started working correctly again and I did a bunch of uploads, but then the problem showed up again. I am using auto_nodetitle setting title=nid. Nodes 8962 8963 8964 8965... should hold image 1,2,3,4 etc... but what I am seeing is a "generally incremental" pattern, with occasional swapped couples, for example:

2, 1, 4, 3, 5, 6, 8, 7, 9, 10, 11, 12, 13, 14, 15, ....

ophelia’s picture

I am using Image FUpload for a Views Gallery photo gallery in Drupal 6. All of my modules are up to date. Image FUpload is queuing my images at random when I try to upload multiple images with one click. If I queue the images individually, then they order correctly, but that can be tedious.

grandcat’s picture

Status: Active » Fixed

It's working fine, but you have to install the DEV version.
Thanks.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.

Haarht’s picture

Status: Closed (fixed) » Active

Hi ! I just installed the dev version, and the issue still occurs. I see similar patterns as in #8.

grandcat’s picture

Status: Active » Closed (works as designed)

The order is as you uploaded it using your OS' file manager. Probably, you should set some sorting options in your file dialog.

Haarht’s picture

Status: Closed (works as designed) » Active

No it's not. It's sorted alphabetically, either in the file manager or in the file dialog window, under Windows XP and Mac OS X, with Safari and Firefox. The result is the same, the order seems more or less randomly incremental, with some files totally out of place. Check out this gallery : http://www.chuul.net/live-report/hellfest-2010-18-20-juin-2010

Haarht’s picture

I just uploaded another bunch of photos. The images are queued in the right order but during the upload phase it's all messed up (see attached screenshot), then on the title edit stage, the order is not correct, as in the final node.

lordzik’s picture

subscribe

...and wait for official release.