Now since the amazon has enabled CORS I was wondering if this is possible.
CORS
Can the html canvas data (on client browser) be converted to a <
canvas
Using toBlob:
canvas.toBlob((blob) => { if (blob === null) return; bucket.upload({ Key: "where/the/file/goes.jpg" ContentType: "image/jpeg", Body: blob, }, (err, data) => {}); }, "image/jpeg");