Handle out-of-order image uploads
Opened this issue · 2 comments
charliegriefer commented
If somebody only uploads image #2, don't save that as image 2, save it as image 1.
Likewise, if somebody uploads images 1 and 3, save as images 1 and 2.
charliegriefer commented
Confirming that this is an issue if I create a new bottle and upload images 1 and 3, but not 2.
charliegriefer commented
Seems to also be an issue when deleting a bottle, as I see an image left over in S3. it was {bottle_id}_3.png, which was the second image uploaded.
This shouldn't really be an issue if the functionality is implemented properly... but it wouldn't hurt to remove images that "start with" {bottle_id}.