The user uses the input="file" tag to select a picture. After I draw the picture selected by the user to canvas for processing, I get the base64 picture data. Then the question arises, how do I put this result into jQuery File Upload? Then click the button to upload?
var data = canvas.toDataURL("image/jpeg", 0.7);
It should be enough to set onchange for the input