I just tried it, here is what CF does.... 

CF looks at the file extension and determines if the files is a string
or not. It's a little weird, get this:

1) if the file is a .htm .cfm .txt it WILL dump the text from the file
into the attributes scoped variable
2) if the file is not one of those extensions above or contains binary
information like a .gif or .jpg CF just sets the value of the client
side filename like this:

C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp\pizzapizza.tmp 

Which isn't very useful, but it also shows that it doesn't affect
anything.

Regardless it doesn't seem to have any performance hit from doing this
because the form variable already exists with this data, all we're doing
is copying it from a form scope to an attributes scope variable.

Steve Nelson
Try my CFML code tester for free!
http://www.secretagents.com/tools/stomp/
(804) 825-6093

Hal Helms wrote:
> 
> Not yet, it hasn't. I'm about to deep six the whole attributes thing...
> 
> Hal Helms
> Team Allaire
> [ See www.halhelms.com <http://www.halhelms.com>  for info on training
> classes ]
> 
> -----Original Message-----
> From: Peter Theobald [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, March 22, 2001 6:29 PM
> To: Fusebox
> Subject: Re: Best Pracices with CF and Fusebox course
> 
> Hi, I'm new to Fusebox (but not to Cold Fusion). I have a question, having
> just read the Fusebox book:
> 
> In a file upload form handler, the "standard" fusebox action will copy all
> Form variables into Attribute variables, which in the case of a file upload
> may copy a large amount of data ( 50K? 100K? 500K?) just to change the
> variable scope. This sounds pretty inefficient. Is this something that has
> been addressed?
> 
> ---------------------------------------------------------------------------
> Peter Theobald, Chief Technology Officer
> LiquidStreaming http://www.liquidstreaming.com
> [EMAIL PROTECTED]
> Phone 1.212.545.1232 x204 Fax 1.212.545.0938
>
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm

Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists

Reply via email to