The form field attribute is set to "arguments.file" it doesn't have ##'s
around it.

> -----Original Message-----
> From: Todd [mailto:[EMAIL PROTECTED]]
> Sent: 17 January 2003 17:45
> To: CF-Talk
> Subject: Re: cffile in a cfc
> 
> Sounds like you're surrounding the the form field with ##'s and you
> shouldn't be.
> 
> <cffile action="upload" filefield="form.whatever"
> destination="#uploadDir#">
> 
> filefield should be the actual form field name is and not the contents
of
> that form field.
> 
> ~Todd
> 
> At 05:35 PM 1/17/2003 +0000, you wrote:
> >Hello All,
> >
> >Does anyone know if you can use cffile in a cfc ?
> >
> >I have converted a form action page to a cfc and I get the old
chestnut
> >about "the form field does not contain a file" error.
> >
> >The form enc type is fine as it works if I put the old code back in.
> >
> >It only errors when I invoke the component and supply the form data
> >through the argument collection.
> >
> >Has anyone got any ideas ?
> >
> >Cheers,
> >
> >-Darren
> 
> 
> 
> ----------
> Todd Rafferty ([EMAIL PROTECTED]) - http://www.web-rat.com/
> Team Macromedia Volunteer for ColdFusion
> http://www.macromedia.com/support/forums/team_macromedia/
> http://www.devmx.com/
> 
> ----------
> 
> 
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4
Subscription: 
http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribe&forumid=4
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Get the mailserver that powers this list at http://www.coolfusion.com

                                Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
                                

Reply via email to