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.FileNotFoundExcept
file.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" >