Cffile upload problem in ubunto


#1

Hi,

I’m on ubuntu 18.04 and attempted to upload an image file via cffile upload from a FORM submission.

Code:

<cffile action="upload"
   destination="/home2/userX/lucee/www"
   filefield="#FORM.picField#">

Error msg:
attribute destination has an invalid value
[/home2/userX/lucee/www/myhandsome.jpg], directory [/home2/userX/lucee/www] doesn’t exist
Stacktrace The Error Occurred in
/var/www/myfileupldoad.cfm: line 72

but directory, /home2/userX/lucee/www DOES exist and it’s the FULL path.

And the lucee is a docker image, lucee52.

Thoughts?

Thanks.


#2

It exists… in the docker image?


#3

This is more than likely a permissions issue.

Check and make sure that Lucee can CRUD files in that directory.


#4

More specifically you can run <cfdump var="#getFileInfo("/home2/userX/lucee/www")#"> and it will have info such as canRead, canWrite make sure those are both true first. If they are false then you need to give the user that lucee is running as write permission to that directory.

Pete Freitag
https://foundeo.com/


#5

Thank you all for your informative responses, I’ll try Pete’s advice first.


#6

Debugging is a good suggestion.


#7

sorry for late response, definitely.