On Tue, 20 Jul 2004 14:14:12 -0400, Peter J. Farrell
<[EMAIL PROTECTED]> wrote:
> Why don't you just pass in the the form field that has the file?
> form.This_File to arguments of the CFC?
> 

Because you get an error saying that "this field does not contain a
file" (or something very similar). I tried that as in my first pass,
thinking along the same lines as you. That would be intuitive, right?
Well, apparently it has something to do with the way the file upload
works with cffile. Interestingly, if you were to do a cfdump of the
Arguments scope passing in only the file field, you'd see that the
value of the field is the tmp file that ColdFusion creates when it
uploads the file. Alas, an error is thrown when I try and call the
cffile tag using the passed-in Argument name. Hence, the need for the
form scope reference.

Does that make sense?

Regards,
Dave.
----------------------------------------------------------
You are subscribed to cfcdev. To unsubscribe, send an email
to [EMAIL PROTECTED] with the words 'unsubscribe cfcdev' 
in the message of the email.

CFCDev is run by CFCZone (www.cfczone.org) and supported
by Mindtool, Corporation (www.mindtool.com).

An archive of the CFCDev list is available at www.mail-archive.com/[EMAIL PROTECTED]

Reply via email to