View Full Version : Same filename, different category.
February 11th, 2005, 09:38 AM
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
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
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
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.
February 14th, 2005, 12:12 PM
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
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
Any ideas why it would do that?
vBulletin® v3.8.1, Copyright ©2000-2014, Jelsoft Enterprises Ltd.