[Looking for Charlie's main web site?]

CFMythbusters_For a file to be uploaded to CF, the page needs a CFFILE Upload tag, right? Wrong!

Note: This blog post is from 2006. Some content may be outdated--though not necessarily. Same with links and subsequent comments from myself or others. Corrections are welcome, in the comments. And I may revise the content as necessary.
I was sharing some thoughts on a discussion list and figured others may appreciate the observation.

Have you ever assumed that for a file to be uploaded to CF, in a post to a CFM page, that that page needs a CFFILE Action="upload" in order to "receive" the file? It does NOT. Now, I'm being a bit technical here, but to be clear, the uploaded file will be "received" by CF, if posted to ANY CFM page whether that tag is there or not to "receive it". The point is that this uploaded file will be put in a temp directory, with a temp file name and extension, at least until the end of the request.

What the CFFILE Action="upload" does is just move the uploaded file from a temp directory to your named DESTINATION (as well as validate its type, report the file name, protect against or allow overwrites, and more, if you use the attributes on the tag for those features).

And if you do NOT process it, then that temp file will be removed at the end of the request (unless perhaps the request terminates unexpectedly).

Need proof? Want to learn more? Read on.

[....Continue Reading....]

Greetings from my new blogspace and web site, carehart.org

Note: This blog post is from 2006. Some content may be outdated--though not necessarily. Same with links and subsequent comments from myself or others. Corrections are welcome, in the comments. And I may revise the content as necessary.
Greetings from my new blogspace and web site, carehart.org. I plan to make this my new home for all the various resources I've contributed to the CFML community over the years. Some I may bring here, others I may point to where they exist, and surely some I will create anew here.

Copyright ©2025 Charlie Arehart
Carehart Logo
BlogCFC was created by Raymond Camden. This blog is running version 5.005.
(Want to validate the HTML in this page?)

Managed Hosting Services provided by
Managed Dedicated Hosting