Skip to content Skip to sidebar Skip to footer

Change File Names Before Uploading With Swfupload

I am using SWFUpload to allow users to upload multiple files in any browser. A user can provide custom file names for the files being uploaded. How can I iterate through all the qu

Solution 1:

You can't update the actual name of the file that gets sent in the POST body of the file upload because internally, SWFUpload is using a FileReference which doesn't let you change any of the file's properties before uploading it (and there's no way to get proper upload progress without using a FileReference to do the uploading, so this isn't something that can really be changed).

However, you should be able to add an extra POST parameter per file via the addFileParam function. Its signature is:

addFileParam(file_id:String, name:String, value:String):Boolean

Post a Comment for "Change File Names Before Uploading With Swfupload"