Copy link to clipboard
Copied
I am using coldfusion 8 and have no problems uploading an image using CFFile when the image has a lowercase file extensions such as .jpg however if the same file has a Uppercase file extension .JPG coldfusion hangs and then just times out. The files are exactly the same just different cases in the extensions.
Any idea?
My cffile is set as such <cffile accept="image/*" action="upload" destination="#uploadfolder2#" filefield="profilePictureFileBrowser" nameconflict="makeunique" >
I tried changing the accept property to image/*, image/jpg, image/JPG but that did not fix the problem either
Copy link to clipboard
Copied
Is the problem with the upload of the file (ie: from client browser to web server) or copying the file from the temp dir to wherever you specify in your CFFILE
tag? Contrary to appearances, CFFILE ACTIOn="UPLOAD" has got nothing to do with uploading the file (which is all done by the web server), all it does is copy the uploaded file from the web server's temp dir (or maybe CF's one... can't remember) to the location you specify.
Does the upload process still hang if you remove the CFFILE tag?
--
Adam
Copy link to clipboard
Copied
Thanks for the quick reply. So I removed the tag and even though I get an error after submitting the form it appears to not hang anyways. Any idea how to fix this?
I am on a windows 2003 server so cases sensitifity should not be a problem. I am perplexed as to why this would work with lowercase extensions an not upper?
Copy link to clipboard
Copied
I'm short of ideas. Maybe check to see if the web server is holding the file open so CF can't move it? Although I can't see how the capitalisation of the file extension could influence this one way or the other..?
Weird.
--
Adam