Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

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

Contributor ,
Jun 12, 2008 Jun 12, 2008
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.
TOPICS
Advanced techniques
397
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Jun 12, 2008 Jun 12, 2008
LATEST
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.
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Resources