 | |  | |
February 11th, 2005, 09:38 AM
|
#1 (permalink)
| | Ultimate Member Verified Customer
Join Date: Nov 2003 Location: Raleigh, NC
Posts: 1,413
| Same filename, different category.
Any tried uploading an image with the same filename, into more than one category?
Since all the filenames are stored intact, and all are stored in the one folder for a particular user under the files folder, I assume it will overwrite the previous image? (I haven't tested this.)
|
| |
February 11th, 2005, 12:35 PM
|
#2 (permalink)
| | Senior Member Verified Customer
Join Date: Aug 2003 Location: Portugal
Posts: 492
| Re: Same filename, different category.
Images are kept according to your userid, so when you upload, it all goes to the same folder.
Image names are not stored intact. Everything beside "a-z", "0-1", "." and "_" is deleted from the name.
And finally to answer your question =) no, I don't think images are overwritten (they weren't in RC2). They are suffixed with a 4 letter numerical string.
|
| |
February 11th, 2005, 12:37 PM
|
#3 (permalink)
| | Ultimate Member Verified Customer
Join Date: Nov 2003 Location: Raleigh, NC
Posts: 1,413
| Re: Same filename, different category.
Look around under your files directory... They aren't prefixed with anything. PhotoPost prefixes either the userid or the catid to the filename. Maybe that's what you're thinking of?
|
| |
February 11th, 2005, 12:58 PM
|
#4 (permalink)
| | Senior Member Verified Customer
Join Date: Aug 2003 Location: Portugal
Posts: 492
| Re: Same filename, different category.
Did you read my answer? =) I said SUffixed!
Let me explain it better.
If your userid is 318, your images are uploaded to "gallery/files/3/1/8/file.ext"
If you image is called "nice flower #3.jpg" it will be renamed to "niceflower3.jpg"
If you upload a new image called "niceflower3.jpg", and already exists a "gallery/files/3/1/8/niceflower3.jpg", the new image will be renamed "niceflower3_7864.jpg" where 7864 is a random number.
Better? =)
|
| |
February 14th, 2005, 12:12 PM
|
#5 (permalink)
| | Guest | Re: Same filename, different category.
Actually (just to be more precise), any images that have the same name as another will be suffixed with a random number between 0 and 999999. | |
| |
February 15th, 2005, 02:53 PM
|
#6 (permalink)
| | Ultimate Member Verified Customer
Join Date: Nov 2003 Location: Raleigh, NC
Posts: 1,413
| Re: Same filename, different category.
Uploading multiple images, using the FTP option.
When processing, if the filename already exists, it tells me "Invalid File Type". If you look in the FTP folder, the filenames have all had the random number appended to the end of their names. I go back to the upload screen, check the box to process the files in the FTP folder a second time, and it works now that the names are different.
|
| |
February 17th, 2005, 10:05 PM
|
#7 (permalink)
| | Ultimate Member Verified Customer
Join Date: Nov 2003 Location: Raleigh, NC
Posts: 1,413
| Re: Same filename, different category.
Any ideas why it would do that?
|
| | |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | | | | Thread Tools | | | | Display Modes | Rate This Thread | Linear Mode | |
Posting Rules
| You may not post new threads You may not post replies You may not post attachments You may not edit your posts HTML code is Off | | | All times are GMT -5. The time now is 01:19 AM. | |