Solved

Coldfusion Image Tag Error Message

Posted on 2009-04-05
3
618 Views
Last Modified: 2013-12-16
Hi everyone I am in the process of moving a coldfusion site from a shared server to a VPS server and I am getting a weird errror on one of my pages

The page uploads and resizes an image. Everything is working fine for images smaller then 60kb but as soon as I select anything larger then this I get the following error message

Ensure that the destination directory exists and that Coldfusion has permission to write to the given path or file. cause : java.io.FileNotFoundException: C:\Inetpub\wwwroot\mywebsite.com\admin\images\profile-photos\200kbfile.jpg (The system cannot find the file specified)

I have verified the the directory does in fact exist I am not exactly 100% sure how to grant coldfuison write access to the destination folder but I went into the security setting for this folder and granted all entries full control. I have access to the coldfusion administrator and have set Timeoutrequsts to 240 seconds and the Maximum size of post data is set to 100 MB there is no file size limitation set on the cffile tag the code for this is below...

In IIS i have granted the website script source acces, read & write access

Once again everything works fine as long as the file is under 60kb when I try a 200kb image i get the error message.

Does anyone have an idea what is happening? any help would be greatly appreciated
<cfset uploadfolder = expandpath('.') & "\images\profile-photos\">

  <cffile accept="image/*" action="upload" destination="#uploadfolder#" filefield="profilePictureFileBrowser" nameconflict="makeunique" >

Open in new window

0
Comment
Question by:mediatimebomb
  • 2
3 Comments
 
LVL 27

Expert Comment

by:azadisaryev
ID: 24071671
what's the update / patching level on you new server? do you have Hotfix1 and the cfimage hotfix installed on it?

http://kb.adobe.com/selfservice/viewContent.do?externalId=kb402604&sliceId=1

Azadi
0
 
LVL 27

Accepted Solution

by:
azadisaryev earned 250 total points
ID: 24074039
PS:
this is the hotfix for this issue: http://www.adobe.com/go/kb403411

note that your server *may* already have a hotfix with same number (71557) installed - but you need to check its date to make sure it is the latest one because this hf was re-issued with same number on August 12, 2008.
also, the cumulative hf for cf8.0.1 was issued BEFORE the above updated cfimage hf, and does NOT include the fix. so if you have the cumulative hf installed, but not the cfimage hf, then you are not patched against the cfimage file-locking bug...

to check which updates are installed on your server, go to {cf_install_dir}\lib\updates - any updates you have installed will have their .jar files in that folder. no files in there = no updates installed.

Azadi
0
 

Author Closing Comment

by:mediatimebomb
ID: 31566769
Ok this helped I installed the Cumulative Hot Fix 2 for ColdFusion 8.0.1 as it looked like it included the ones you pointed out however I am still getting errors. I am able to upload images of about 6 megs in size anything larger then that and I get the following error message An exception occurred while trying to read the image.  
Decoder cannot decode input.  
looks like problems with my resize operation now booo!
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Recently while working on a project I got a very annoying cfdocument has no body error message. I had never seen this error before. So I checked the code. The code was pretty simple; it was Just showing me the cfdocumnt tag and inside that tag a …
This guide will walk you through the essential considerations and tech stack for building scalable websites. Know how to grow your business the smart way!
The purpose of this video is to demonstrate how to reset a WordPress password if you are locked out and cannot reset the password. A typical use would be if you cannot access the email to which WordPress would send the password recovery email to…
The purpose of this video is to demonstrate how to Import and export files in WordPress. This will be demonstrated using a Windows 8 PC. Go to your WordPress login page. This will look like the following: mywebsite.com/wp-login.php : Click on Too…

920 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

17 Experts available now in Live!

Get 1:1 Help Now