Two ideas I have:
1) Use the fusebox method of including <CF_FORMURL2ATTRIBUTES> on every page, then 
pass filefield="attributes.filefield". This may not work, haven't tried it
2) Just do <CFSET form.filefield = url.filefield> on the called page

Terry Long wrote:

> I'm trying to upload a file, either by the form --> CFFILE method or by
> specifying the file to upload via URL.file variable.  The CFFILE requires a
> form field so this errors out.  Any ideas on how to accomplish this feat?
>
> Thanks
> Terry Long
>
> ----------------
> <cfif isdefined("url.file")><cfset form.uploadedfile=url.file></cfif>
> <!--- upload file with unique name --->
> <CFSET IsOverwriteEnabled = "NO">
>
> <cfif isdefined('uploadedfile')>
>         <CFFILE
>         action="UPLOAD"
>         fileField="UpLoadedfile"
>         destination="#application.attachmentpath#"
>         nameConflict="MAKEUNIQUE">
> <cfelse>
>         Error - Input "UpLoadedFile" is missing....
>         <cfabort>
> </cfif>
>
> ----------------
> Diagnositcs |
> Error in CFFILE tag
> The form field specified in the CFFILE tag (UPLOADEDFILE) does not contain
> an uploaded file. Please be sure that you have specified the correct form
> field name.
>
> ------------------------------------------------------------------------------
> To Unsubscribe visit 
>http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/fusebox or send a 
>message to [EMAIL PROTECTED] with 'unsubscribe' in the body.

------------------------------------------------------------------------------
To Unsubscribe visit 
http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/fusebox or send a 
message to [EMAIL PROTECTED] with 'unsubscribe' in the body.

Reply via email to