Solved

Coldfusion Image Tag Error Message

Posted on 2009-04-05
3
621 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

Windows Server 2016: All you need to know

Learn about Hyper-V features that increase functionality and usability of Microsoft Windows Server 2016. Also, throughout this eBook, you’ll find some basic PowerShell examples that will help you leverage the scripts in your environments!

Question has a verified solution.

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

Suggested Solutions

PROBLEM:  How to open a cfwindow or run a function on double click of a cfgrid row. One of my clients wanted to be able to double click on a row item to get more detailed information about a transaction and to be able to modify the line items i…
Hi, Even though I have created this Tutorial on My personal Blog, Some people might not able to find my website, So here i am posting it again Today, from the topic it is very clear that i will be showing you here the very basic usage of how we …
The purpose of this video is to demonstrate how to create a Printer Friendly PDF on a WordPress Page. This will be demonstrated using a Windows 8 PC. Tools Used are Photoshop, Awesome Screenshot” Google Chrome Extension, and SmallPDF.com Log…
The purpose of this video is to demonstrate how to automatically show related posts at the bottom of a blog post in WordPress. This will be demonstrated using a Windows 8 PC. Plugin “Yet Another Related Posts Plugin” will be used. Go to your…

813 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

18 Experts available now in Live!

Get 1:1 Help Now