Sequentially Naming Thumbnails

Archived from the Transloadit support forum. Originally posted on March 25, 2011; details may be outdated, see our docs for current behavior. Original thread

Is there a way to number video thumbnails in order?

It would be great if there was a file property that could be used - or if there was a way to access the array index number.

When I say “number” I mean incorporate a number into the file name. I am building custom file names using info that is included in the upload along with file properties available from the assembly. Would like to add a sequential number to the file name if possible.

Hey paul,

there is a field “thumb_index” in the meta portion of your files which you can access.

There is one important thing to consider though: Since we extract all the thumbnails in parallel the files might not be properly sorted according to the thumb_index field. In 90% of the cases they might be properly sorted, but not in 100%.

This is on my todo list and will be fixed for your convenience soon, though.

Kind regards,
Tim

Great! Thanks Tim.