> 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.

Right. I sort of worked around it by just stripping the "." character from
the form name, so the code now reads as follows

        <cfa_controlHandler
         name="e#n#"
         r_contextName="cn"
         r_stContextData="cd"
        >
                <cfset awfulhack = Replace(cn & ".file", ".", "", "ALL")>
                <cfa_controlHandlerEvent name="UPLOAD">
                        <cffile
                         action="upload"
                         filefield="#awfulhack#"
                         destination="C:/TEMP/"
                         nameconflict="Makeunique"
                        >
[...]
                <cfoutput><input type="file" name="#awfulhack#">
<input type="submit" name="#cn#.upload" value="upload">
</cfoutput>

I need more than one of these beasties on one page so I can't really
hard-code the form field, like the file object does.

I don't really understand why cffile does not like form fields with .
characters. Can this be fixed in CF5.0 please?


~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
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.

Reply via email to