Bug in "Browse uploaded images..."? (General)

by Otto, Sunday, July 13, 2008, 11:07 (5738 days ago)

Recently I cleaned up the uploaded imaged directory a bit, to make some room on the server. Now the "Browse uploaded images..." in the "Upload image" window appears not to work proper anymore. I investigated the directory a bit, and it appears that the filenames of the removed images are being reused for the new uploaded files. So, if the old files were named "image1.jpg" through "image1234.jpg", the "Browse uploaded images..." display shows "image1230.jpg" through "image1234.jpg". when I delete "image1.jpg" through "image499.jpg" on the sever, new uploaded images start with "image1.jpg" again. However, the "Browse uploaded images..." display seems to keep showing "image1230.jpg" through "image1234.jpg".

Otto

locked
3706 views
Avatar

Bug in "Browse uploaded images..."?

by Alex ⌂, Monday, July 14, 2008, 12:55 (5737 days ago) @ Otto

Hi Otto,

you're right, the number assignment is not really a good solution! If a number is reused because the image was deleted, the wrong image is displayed in the original posting. I'll change this to timestamp/uniqid filenames.

Here's a trial: upload_image.inc.txt (as includes/upload_image.inc.php).

Alex

locked
3067 views

RSS Feed of thread