Closed yourchoice closed 4 years ago
I see that there need to add in param { canvas: true } and working , so i think can be closed
Is there a way in then(function (data) { ... }) to convert data.blob in base64 ? I would like to prefill an hidden input with base64...
Hi @yourchoice,
canvas
data can be exported as base64 URL:
https://developer.mozilla.org/en-US/docs/Web/API/HTMLCanvasElement/toDataURL
I recommend you to bookmark https://developer.mozilla.org/, as it's a great documentation resource for JavaScript and has a good search function that will allow you to find answers to your question on your own.
When I upload a file image, i get this error
Error: TypeError: data.image.toBlob is not a function