views:

433

answers:

1

In CF7, can anyone tell me if there's a way around the file being automatically uploaded to the /tmp/ folder before being moved to a destination location I provide? I'm trying to use cffile in a shared server location. I don't have access to the tmp directory, and am hoping to find a work around.

 <cffile action="upload" destination="#expandpath('./')#/myFiles" fileField="myFile">

I'm working in a Linux environment, and like I said, have no access outside my webroot. The oddest part is that I seem to not make it to this point. From my I get a 500 page or directory not found error. Even if the post.cfm does NOT have any code, just text, so it seems that the problem is coming from the enctype is trying to "place" the file on the server before I ever get to .

I'm at a total loss and hopeful someone can help.

+1  A: 

My understanding is that where the file is uploaded is actually a function of the webserver, not CF itself. CF copies/moves/etc. the file from the temp directory once it is on the server. You will have to get the server admin to allow your process access to the directory.

Ben Doom
Yep, thats what I found. Godaddy will not allow access to write to the /tmp directory in a shared environment. Understandable to an extent I suppose. But, I went with CrystalTech, they allow it, have CF8 vs CF7 w/ Godaddy. And is cheaper.
Gene R