uploading files using the server path for the destination
I'm currently trying to upload a file using the cffile tag and the file only gets uploaded to my site's directory destination if I use the computer's directory path versus the server path. Anyone know why?
It only works with #dest1# as the destination, not #dest2#
<cfset dest1="C:\ColdFusion9\wwwroot\practice\uploads" />
<cfset dest2="http://localhost:8500/practice/uploads/" />
<cffile action="upload" destination="#dest2#" filefield="form.myImage" />
My error is:
Attribute validation error for tag CFFILE. | |
| The value of the attribute destination, which is currently http://localhost:8500/practice/uploads/, is invalid. | |
| The error occurred in C:\ColdFusion9\wwwroot\practice\move_file.cfm: line 4 | |
2 : <cfset dest2="http://localhost:8500/practice/uploads/" /> 3 : 4 : <cffile action="upload" destination="#dest2#" filefield="form.myImage" /> | |
