Alter file contents before uploading
问题 I would like to encrypt the contents of a file before uploading to our server .. we are using fineuploader. What I would like to do is: function onSubmitted(id) { var file = uploader.getFile(id); var reader = new FileReader(); reader.onload = function (e) { //encrypt here // but how do I save the file back to fineuploader? //then continue to submit/upload }; reader.readAsArrayBuffer(file); } is there any way of doing this out of the box or will I need to resort to rampant hackery :) :) 回答1: