phppup Posted November 1, 2022 Share Posted November 1, 2022 I want to allow users to upload images to a directory. I want the images renamed sequentially and lumped together with each upload. Eg: If Bob uploads 3 images to the BIRD directory, the files will be named BIRD1, BIRD2, and BIRD3. When Tom then uploads 6 images to this directory, they will be sequential from 4 to 9. And when Jane adds 5 the numbering will run from 10 to 14. I suspect that in each instance I will need to SELECT an "image quantity" column and initiate a number sequence from the sum at that point. But my question is more about maintaining the integrity of the sequences. If Tom and Jane upload somewhat simultaneously, how can I control the outcome to prevent Tom from having numbers 4,5,8,11,13 and 14 with Jane's images interspersed in the sequence? Obviously the two uploads will be competing based on image sizes, network speed, etc. How can I keep the separate batches organized as a group? Quote Link to comment Share on other sites More sharing options...
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.