there is a flex FileReference that you need to use, then call a upload 
cfm page.  
So here is the cfm page:

<cfset uploadTargetLocation=expandPath("../../../test")>
<cfset req = getHTTPRequestData() />


<cffile action="UPLOAD" filefield="Filedata" 
destination="#uploadTargetLocation#/#FORM.tempName#" 
nameconflict="MAKEUNIQUE">
<!------>
<cfsavecontent variable="info">
<html>
        <head></head>
        <body>
                <cfdump var="#uploadTargetLocation#">
                <cfdump var="#cffile#" label="CFFILE">
                <cfdump var="#req#" label="getHTTPRequestData()">
                <cfif IsDefined("URL")>
                        <cfdump label="URL" var="#url#">
                </cfif>
                <cfif IsDefined("FORM")>
                        <cfdump label="FORM" var="#FORM#">
                </cfif>
        </body>

</html>
</cfsavecontent>
<cffile action="write" file="#uploadTargetLocation#/dump.html" 
output="#info#" addnewline="yes">

<!--- this will also dump out all the data to a file so you can read 
it --->


also check out http://blog.flexexamples.com/2007/09/21/uploading-
files-in-flex-using-the-filereference-class/

--- In flexcoders@yahoogroups.com, "r0brh0des" <[EMAIL PROTECTED]> wrote:
>
> 
> I am trying to call a coldfusion function in a cfc to handle a
> fileRequest upload. I can't seem to get the function to take the url
> variables or do anything.......if I take away the <cffunction> and
> cfargument tags it works fine as a cfm.
> 
> What is it about the cfargument and cffunction tags that makes the
> passing of data different?
> 
> Won't they take the multipart/form data?.......If I need a remote
> object how do I upload a file?
>



Reply via email to