Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

Coldfusion Image Tag Error Message

Posted on 2009-04-05
3
Medium Priority
?
640 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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 1000 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

Looking for a new Web Host?

Lunarpages' assortment of hosting products and solutions ensure a perfect fit for anyone looking to get their vision or products to market. Our award winning customer support and 30-day money back guarantee show the pride we take in being the industry's premier MSP.

Question has a verified solution.

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

PROBLEM: How to add your own buttons to the bottom toolbar with paging info ( result count ). While creating a cfgrid, I ran into an issue where I wanted to embed my own custom buttons where the default ones ( insert / delete / etc… ) are for aes…
Originally, this post was published on Monitis Blog, you can check it here . It goes without saying that technology has transformed society and the very nature of how we live, work, and communicate in ways that would’ve been incomprehensible 5 ye…
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 integrate Mailchimp with Facebook. This will be demonstrated using a Windows 8 PC. Mailchimp and Facebook will be used. Log into your Mailchimp account. : Click on your name. Go to Account Setti…
Suggested Courses

597 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