PhotoPost Photo Gallery Sales PhotoPost Sales Toll Free Phone Number
Mon-Fri 9am-4pm EST
  PhotoPost Photo Sharing Photo Gallery    Visualize community tm
| | | | | | | | |
Old March 5th, 2005, 02:48 PM   #1 (permalink)
Junior Member
Verified Customer
 
Join Date: Feb 2005
Posts: 11
Corrupt tumbnames, mismatch between server filename, and dB filename

If you edit an image, replacing it (2 times or more) with another image having the same file name, the thumb filename in the database will be different than the filename on the server.

This happens frequently if you use the same filename, like "fun.jpg", "new.jpg", etc.

To reporduce it:

1. Uplaod an image called new.jpg
2. Edit, and replace with a 2nd image named new.jpg
3. Edit, and replace with a 3rd image named new.jpg

Now browse the category, the thumb image will not appear, but if you click on the thumb title, the image is there.

Check the database for the image id, and you see the filename is appended with a random number, say:

new_704636.jpg, and the thumbname is appended a different number:
new_904833.jpg

matching image edit #2, and missing the "_thumb" postfix.
imported_tamarian is offline   Reply With Quote
Old March 5th, 2005, 03:28 PM   #2 (permalink)
Junior Member
Verified Customer
 
Join Date: Feb 2005
Posts: 11
Re: Corrupt tumbnames, mismatch between server filename, and dB filename

I forgot to add, the above steps will fail with a no permission message, unless you're an admin or moderator.

In editimage.php, this code:

Code:
Content visible to verified customers only.
Should probably be:
Code:
Content visible to verified customers only.
To allow the non-mod image owner to edit their image.
imported_tamarian is offline   Reply With Quote
Old March 7th, 2005, 10:13 AM   #3 (permalink)
Brian
Guest
 
Posts: n/a
Re: Corrupt tumbnames, mismatch between server filename, and dB filename

I can't seem to reproduce this... Would you mind submitting a support ticket so I can have a look?
  Reply With Quote
Old March 7th, 2005, 12:06 PM   #4 (permalink)
Junior Member
Verified Customer
 
Join Date: Feb 2005
Posts: 11
Re: Corrupt tumbnames, mismatch between server filename, and dB filename

Quote:
Originally Posted by Brian
I can't seem to reproduce this... Would you mind submitting a support ticket so I can have a look?
For the problem in post #1: I just found out this only happens with images smaller than the thumb size. So if you repeat the steps above with a small image (I'll attach one that works each time) it should re-produce.
Attached Images
File Type: gif tamarian.gif (2.2 KB, 10 views)
imported_tamarian is offline   Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
change filename when i download my favorites Damir P Photopost Pro How Do I...? 4 March 14th, 2005 10:47 AM
Same filename, different category. ConqSoft Installs and Upgrade - vBulletin 3.0.X 6 February 17th, 2005 11:05 PM
Images with %20 in the filename are unproperly handled Reynaldo Installs and Upgrade - vBulletin 3.0.X 2 January 1st, 2005 11:12 PM


All times are GMT -5. The time now is 06:13 PM.

Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0