/t5/coldfusion-discussions/upload-issues/td-p/162457Jun 25, 2008
Jun 25, 2008
Copy link to clipboard
Copied
Okay this is driving me nuts. I haven't had to do file
uploads (using cffile) in several years that I have forgotten how I
accomplished this before.
Currently I have a form in a subfolder called "fails" which
is directly under my root (wwwroot/fails). All I want to do is send
any files uploaded to a subfolder called "data"
(wwwroot/fails/data). I know I need to set the path in the
destination field, but I do not want to hard code the actual path
(c:\cfusion8\...). I remember there being a variable that would
show me the relative path of a file, but I forgot was that was
called (I thought it was a CGI variable but none of them worked).