Is it possible to change the content of a file before beeing uploaded in javascript ? I can read the content but changing it seems impossible.
f = document.getElementById('input').files[0];
var reader = new FileReader();
reader.onload = function(e){
console.log(e.target)
e.target.result = "new content"
console.log(e.target);
};
reader.readAsDataURL(f);