Reputation: 2617
I'm trying to upload an image to my server and the destination attribute of cffile is adding the tmp directory to the front of my destination path.
I know from another question on here that
The destination has to be a full path, otherwise it gets sent to a directory relative to the temp directory of ColdFusion.
But I am using the full server path. I'm in a Unix environment so its starting with /var/www/mywebsite...
This is true because it even outputs the path
/opt/coldfusion8/runtime/servers/coldfusion/SERVER-INF/temp/wwwroot-tmp/\var\www\mywebsite\Gallery\
You can see where the tmp folders are and my intended destination.
I am also working on the right line, because when I enter different values for my intended destination, they reflect as such in the error output.
Upvotes: 1
Views: 869
Reputation: 9615
It looks like you are using backslashes in your path attribute. You didn't post any code, so I am guessing, but it looks liek your cffile looks like
<cffile destination="\var\www\mywebsite\Gallery\" ... />
You should always use front slashes, especially on *nix
<cffile destination="/var/www/mywebsite/Gallery/" ... />
Upvotes: 4