At Switches I have Attachments directory as category tree: Off At Functionality I have File attachments naming method: Natural At Functionality I have Allowed Upload Extensions: gif,jpg,jpeg,png,tif,JPG,JPEG
When uploading an image with the same name of one already uploaded all work fine, except for some images that have the extension in caps as .JPG :
When the same image name with the extension .JPG in caps is intended to be uploaded a second time attached on a new link, the following error arises:
Couldn't find an unused name. There's got to be a bug in this script if you see this. (Find me in filefunctions.php)
Comments on Cannot upload again same file
Forum Regular
Usergroup: Customer
Joined: Aug 09, 2004
Location: Chile
Total Topics: 172
Total Comments: 462
Hello Paul,
Could you please check the following detail:
At Switches I have Attachments directory as category tree: Off
At Functionality I have File attachments naming method: Natural
At Functionality I have Allowed Upload Extensions: gif,jpg,jpeg,png,tif,JPG,JPEG
When uploading an image with the same name of one already uploaded all work fine, except for some images that have the extension in caps as .JPG :
When the same image name with the extension .JPG in caps is intended to be uploaded a second time attached on a new link, the following error arises:
Couldn't find an unused name. There's got to be a bug in this script if you see this. (Find me in filefunctions.php)
Thank you again.
developer
Usergroup: Administrator
Joined: Dec 20, 2001
Location: Diamond Springs, California
Total Topics: 61
Total Comments: 7868
In filefunctions.php replace your findfilename function with this and it ought to work I think:
Forum Regular
Usergroup: Customer
Joined: Aug 09, 2004
Location: Chile
Total Topics: 172
Total Comments: 462
Thank you,
Now it's working perfectly.