Updating file content with uploader

Is it possible to update file content before uploading it?

onafterfileadd event I want to read contents of my file and update its content, then i want to upload the the same file with updated content.




  • Hi,

    You can access the content of the file before uploading with the help of onBeforeFileAdd event

    $$("uploader").attachEvent("onBeforeFileAdd", function(record){
       record.file = some_processing(record.file);

    record.file is a blob of data, content of the file. You can change it in a necessary way.

Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

In this Discussion