forum.coppermine-gallery.net

Support => cpg1.5.x Support => cpg1.5 upload => Topic started by: mitko on January 13, 2013, 09:34:03 pm

Title: Minor issue with upload files with the same names
Post by: mitko on January 13, 2013, 09:34:03 pm
Looks like i found small bug during upload of the file with same name as previous but entered upper case.
One of the users had file in the gallery i.e. abc.jpg and then accidentally uploaded Abc.jpg
Old file was overwritten but thumb and intermediate pic were not created properly. Can you check please?
Title: Re: Minor issue with upload files with the same names
Post by: phill104 on January 13, 2013, 11:05:20 pm
Which upload method was the user using? Single file uploader, flash upload, batch add or jupload?
Title: Re: Minor issue with upload files with the same names
Post by: mitko on January 14, 2013, 06:26:54 am
I believe he used flash uploader.
Title: Re: Minor issue with upload files with the same names
Post by: Αndré on January 18, 2013, 05:10:41 pm
Do you host your gallery on a Windows or Linux machine?
Title: Re: Minor issue with upload files with the same names
Post by: mitko on January 18, 2013, 05:59:54 pm
Linux
Title: Re: Minor issue with upload files with the same names
Post by: phill104 on January 18, 2013, 06:21:16 pm
On Linux machines file names are case sensitive but on a windows machine they are not. So Abc.jpg and abc.jpg would be considered different files on Linux. Have you checked to see if abc.jpg still exists using FTP? I see no reason why uploading Abc.jpg would not have just created a second file.
Title: Re: Minor issue with upload files with the same names
Post by: mitko on January 18, 2013, 07:07:48 pm
Guys, i tried to reproduce this issue but was not successful. Unfortunately i found the problem some time after it was appeared, maybe  admin operations like recalculate size, update thumbnails etc. were already made for this album. Generally situation looked following way: for some particular picture thumbnail was 1x1 pix, picture itself was absent. Same time thumbnail was shown in the picture edit page. I opened directory via ftp and didn't find original picture at all. But i found picture with same name (abc.jpg instead Abc.jpg and double set of thumbnails). So it hard to say now what happened. If you have any ideas what to check - i can try them.
Title: Re: Minor issue with upload files with the same names
Post by: phill104 on January 18, 2013, 07:10:43 pm
As I cannot replicate it and neither can you best to just re upload the image and monitor to see if it happens again. Not a lot else to suggest.