javascript - Questions about the jQuery File Upload plug-in
淡淡烟草味
淡淡烟草味 2017-06-10 09:49:07
0
1
635

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);
淡淡烟草味
淡淡烟草味

reply all(1)
学霸

It should be enough to set onchange for the input

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template