Skip to main content
nikos101
Inspiring
January 29, 2009
Answered

File uploaded to wrong location

  • January 29, 2009
  • 1 reply
  • 398 views
I have some code to upload a file.However when I check the server the file is not in the

userFiles/csv/

folder, but rather in side the

userFiles/ folder.

Any ideas what wrong with my code?
This topic has been closed for replies.
Correct answer nikos101
I changed

<cfset upload_dir = getDirectoryFromPath(expandPath('userFiles/csv/'))>

into
<cfset upload_dir = getDirectoryFromPath(expandPath('userFiles\csv\'))>and it worked :)

1 reply

nikos101
nikos101AuthorCorrect answer
Inspiring
January 29, 2009
I changed

<cfset upload_dir = getDirectoryFromPath(expandPath('userFiles/csv/'))>

into
<cfset upload_dir = getDirectoryFromPath(expandPath('userFiles\csv\'))>and it worked :)