Skip to main content
Participant
September 12, 2008
Question

cfflile on linux not uploading

  • September 12, 2008
  • 5 replies
  • 530 views
I can't get my cffile upload to work. I'm on Linux CF 8. When it runs it appears that everything happended correctly. No error message appears and the variable dbfurl, that holds the filename, gets inserted into the database further down in the code correctly. The problem is the file is never uploaded. Whenever uploads haven't worked in the past I've received an error message. Anyone have ideas on what's wrong?
This topic has been closed for replies.

5 replies

BKBK
Community Expert
Community Expert
September 17, 2008
Could be that Coldfusion cannot find the destination to park the uploaded file. If indeed so, then the uploaded file will be in the temporary directory. Go have a look there.

<p>Temporary directory for this ColdFusion server:
<cfoutput>#GetTempDirectory()#</cfoutput>.</p>


Inspiring
September 17, 2008
Hi,

(Just a continuation of Kronin555's answer), Check your upload directory's ownership, in some cases you may have to change it through the "chown" command. Check it with your administrator.
Participant
September 16, 2008
prasanth25:
I've tried adding mode="777" and it doesn't help.

BKBK:
I changed to cffile.ServerFile, but that was the part that was working correctly. I've forgotten the form attributes before, but it would be returning an error message if I had done that.

The no error message is throwing me.
Participating Frequently
September 16, 2008
Does the user that the coldfusion process is running as have write priviledges to that directory?
BKBK
Community Expert
Community Expert
September 13, 2008
1) The file structure is deprecated. use cffile.ServerFile instead.

2) Aside from Prasanth25's remark, the form tag should have the attributes method="post" and enctype="multipart/form-data"




Prasanth_Kumar_S
Inspiring
September 13, 2008
Hi,
Try adding mode="777" to the cffile tag and try.

- Prasanth