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.
Thanks,
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.
Thanks,
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.