|
Table Of Contents
|
Path : Home » ColdFusion Products » File Management » CF_ProFlashUpload » Program your own File Receiver
Program your own File Receiver
Normally each uploaded file is received by the components uploadfile.cfm ColdFusion template and this receives the file and store it to the correct location.
However if you want or need to, you could create your own uploadfile.cfm file and performs custom processing. You can then tell PFU to use your custom file by passing in uploadURL, eg. uploadURL="http://localhost/customUploadFile.cfm". NOTE: Due to security restrictions in Flash, the uploadURL must point to the same server. The file data is received in form field FILEDATA. You just need to have the following line in the file: <cffile action="upload" fileField="Filedata" destination="c:\some_folder\" nameConflict="overwrite" /> And it's no harm to write out <cfoutput>Upload Successful</cfoutput> after this line. |