You can get around this by not referring to the context when using the form
upload file. So, if you have this:
<input name="uploadfile" type="file" size="15" style="height:19;">
then your cffile, inside your control handler, can look like this:
<cfa_controlHandlerEvent name="fileuploaded">
<cfif len(uploadfile)>
<!--- upload file --->
<cffile
destination="#attributes.stParams.directoryPath#"
action="upload"
nameconflict="makeunique"
filefield="uploadfile"
mode="777">
This was taken from the upload handler for the file type, in case you want
to see more. I guess, in ways, by not referring to contextname.uploadfile,
you are _kinda_ going against the control handler 'rules', but this should
work anyway.
=======================================================================
Raymond Camden, Principal Spectra Compliance Engineer for Allaire
Email : [EMAIL PROTECTED]
ICQ UIN : 3679482
"My ally is the Force, and a powerful ally it is." - Yoda
> -----Original Message-----
> From: Michiel Boland [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, March 13, 2001 5:11 AM
> To: Spectra-Talk
> Subject: Re: file uploads in cfa_controlhandler
>
>
> > Unfortunately CFFILE appears to insist that the FILEFIELD parameter not
> > contain any pound signs at all, so this does not work.
>
> Small correction. Apparently it is required that the filefield parameter
> not contain a dot after expansion. So I guess that it's just impossible to
> have file upload forms inside control handlers, right? (That sucks)
>
>
>
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Structure your ColdFusion code with Fusebox. Get the official book at
http://www.fusionauthority.com/bkinfo.cfm
------------------------------------------------------------------------------
To Unsubscribe visit
http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/spectra_talk or send a
message to [EMAIL PROTECTED] with 'unsubscribe' in the body.