Home  >  Q&A  >  body text

javascript - Questions about the jQuery File Upload plug-in

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

reply all(1)I'll reply

  • 欧阳克

    欧阳克2017-06-10 09:51:07

    It should be enough to set onchange for the input

    reply
    0
  • Cancelreply