Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

Problems uploading images with uppercase (.JPG) file extension.

New Here ,
Jun 09, 2011 Jun 09, 2011

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

1.6K
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Jun 09, 2011 Jun 09, 2011

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

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Jun 09, 2011 Jun 09, 2011

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?

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Jun 09, 2011 Jun 09, 2011
LATEST

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

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Resources