everything was working before, now i keep getting the following error:


FILE specified in CFHTTPPARAM tag not found

someone please help.

my code looks like this:

<!---  Upload the file to the server  --->
	<CFFILE action="upload"
			filefield="img"
			destination="#ExpandPath('../img')#"
			nameconflict="makeUnique">
<cfhttp url="http://www.xxx.com/admin/upload-size.php" method="post">
<cfhttpparam type="formfield" name="bThumb" value="2" >
<cfhttpparam type="file" name="imgfile" file="#CFFILE.ServerDirectory#/#CFFILE.ServerFile#" >
 
</cfhttp>

First, you should figure out where "#CFFILE.ServerDirectory#/#CFFILE.ServerFile#" resolves to. Then, make sure that the user that coldfusion server is running as has the permission to read that file (and directory) if cold fusion doesn't have permission to see it, even if it's there, you'll get the file not found error.

HTH

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.