When using a flex filereference with a cfm to upload a file to the server, is there a way to get specific info back to the clinet without using a cfc for the upload, so I can return something? My current upload cfm looks like this:
<cfset id = FORM.id>
<cfset upload_dir = getDirectoryFromPath(expandPath('attachments'))>
<cfset return_str = "everything went ok">
<cftry>
<cffile action="upload" result="d"
filefield="sample"
destination="#upload_dir#"
nameconflict="makeunique"
accept="application/octet-stream"/>
<cfreturn d>
<cfcatch type="any">
<cfset return_str = "There was a problem uploading the sample">
<cftry>
<cffile action="delete" file="#upload_dir##CFFILE.ServerFile#"/>
<cfcatch type="any">
<cfthrow message="#CFCATCH.Message# #CFCATCH.Detail# #return_str#">
</cfcatch>
</cftry>
</cfcatch>
</cftry>