upload canvas data to s3

前端 未结 5 1547
刺人心
刺人心 2020-12-25 13:53

Now since the amazon has enabled CORS I was wondering if this is possible.

Can the html canvas data (on client browser) be converted to a <

5条回答
  •  Happy的楠姐
    2020-12-25 14:32

    There is an old post method to upload data from browser to s3

    http://s3.amazonaws.com/doc/s3-example-code/post/post_sample.html

    then I have used this idea Convert Data URI to File then append to FormData

    and instead of normal POST there can be an xhr request with the formdata to amazon and you are done

提交回复
热议问题