Skip to main content
Inspiring
June 12, 2008
Question

Does file upload have to go through the tmp directory first?

  • June 12, 2008
  • 1 reply
  • 413 views
I am dealing with some large file uploads in the 1gb to 2gb range. These files get uploaded first into CF's tmp directory, then CFFILE essentially copies the file to another location. With large files, this secondary copy by CFFILE actually consumes a lot of time and I/O resources. Is there a way to simply upload the file directly into the folder I want and bypass the whole temp operation? FTP is not an option for me. Thanks.
This topic has been closed for replies.

1 reply

Inspiring
June 12, 2008
Maybe. I can only advise you to consider the roles each player have in
moving that file around.

The browser gets the file from the client file system and encodes it
into the request.

The web server (IIS, Apache, etc) decodes it from the request and writes
it to the tmp directory.

ColdFusion receives the request and is told what file(s) where put into
the above directory where it can do what it is told to do with it.

I imagine it might be possible to do something at the web server layer
to modify this behavior as you desire, but I have no idea what it would be.