RE: Passing file from form to CFC

2006-12-18 Thread Snake
. Russ -Original Message- From: Mike Kear [mailto:[EMAIL PROTECTED] Sent: 18 December 2006 04:49 To: CF-Talk Subject: Re: Passing file from form to CFC The upload process creates a struct called File containing a whole bunch of information about the file you just uploaded, and what teh

Re: Passing file from form to CFC

2006-12-18 Thread Deanna Schneider
If you're going to do the upload within the cfc, all you need to pass is the name of the form field. In your cfc you'd have: cfargument name=item required=true type=any .. cffile action=upload filefield=#arguments.item# destination=#arguments.path# nameconflict=makeunique

Re: Passing file from form to CFC

2006-12-18 Thread Mike Kear
there is no argument type, so try ANY. Russ -Original Message- From: Mike Kear [mailto:[EMAIL PROTECTED] Sent: 18 December 2006 04:49 To: CF-Talk Subject: Re: Passing file from form to CFC The upload process creates a struct called File containing a whole bunch of information about the file

RE: Passing file from form to CFC

2006-12-18 Thread Adrian Wagner
, which his CFC is presumably going to do the CFFILE process for. It is actually a binary file, for which there is no argument type, so try ANY. Russ -Original Message- From: Mike Kear [mailto:[EMAIL PROTECTED] Sent: 18 December 2006 04:49 To: CF-Talk Subject: Re: Passing file from form

Re: Passing file from form to CFC

2006-12-17 Thread Mike Kear
The upload process creates a struct called File containing a whole bunch of information about the file you just uploaded, and what teh upload process did with it.file size, renamed or not, location, file type stuff like that.you can pass the whole struct in a single swoop to the CFC if