This content has been marked as final. Show 4 replies
Do you have the correct path to the folder you are trying to upload to on the Linux box? Do you also have the correct ownership/permissions set on that folder? Do you have this mode="644" in your cffile tag? What does your action code look like?
It's not a permissions issue. I can't even get to that point. The problem is using the code in a file named test.cfm:
<FORM action="test2.cfm" enctype="multipart/form-data" method="post">
What files are you sending? <INPUT type="file" name="files">
<INPUT type="submit" value="Send">
If I choose a file from my PC for the file input and then click the send button I get the server 500 error. The test2.cfm file does nothing except show the debug output and some text saying "hello." This is not getting displayed. It works fine if I put the above code in a file called test.htm and put test2.htm in the action of the form. It submits fine. It's when you submit it with a .cfm extension is when it does not work.
I just tested this on my linux server. I ran the template with IE6 on winXP. No problem.
The file is uploaded initially to CFMX's temp directory - /opt/coldfusionmx7/runtime/servers/coldfusion/SERVER-INF/temp. The CFUser should be able to write to that directory. There should be no issue with different filesystems.
What happens if you try the same thing with your template as an html file?
Could we see the code on your action page, test2.cfm? It is likely the one causing the problem.