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" accept="#arguments.type#"> On 12/17/06, Adrian Wagner <[EMAIL PROTECTED]> wrote: > Hello, > > I have a form from where the client can upload files to the site. I'm a > bit confused about the passing on of the form field to the component > here. A regular text field I'd pass on like this: > > <cfinvoke ...> > <cfinvokeargument name="imageName" value="form.imageN"> > </cfinvoke> > > And in the cfc: > > <cffunction ...> > <cfargument name="imageName" type="string"> > </cffunction> > > Now, there is no type 'file' for cfargument. What am I supposed to do > in that case? Or is the variable I'm refering to here just a string > anyhow, which refers to a file in the form scope? > > Would be glad about some enlightenment here. > > Adrian > > > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Create robust enterprise, web RIAs. Upgrade & integrate Adobe Coldfusion MX7 with Flex 2 http://ad.doubleclick.net/clk;56760587;14748456;a?http://www.adobe.com/products/coldfusion/flex2/?sdid=LVNU Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:264290 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4