How to upload base64 encoded image data to S3 using JavaScript only?

前端 未结 4 1778
花落未央
花落未央 2021-01-30 18:43

I have a rails app on Heroku (cedar env). It has a page where I render the canvas data into an image using toDataURL() method. I\'m trying to upload the returned ba

4条回答
  •  鱼传尺愫
    2021-01-30 19:24

    Not sure if OP has already solved this, but I'm working on a very similar feature. In doing a little research, I came across these articles that might be helpful.

    • http://blog.danguer.com/2011/10/25/upload-s3-files-directly-with-ajax/
    • http://www.tweetegy.com/2012/01/save-an-image-file-directly-to-s3-from-a-web-browser-using-html5-and-backbone-js/

提交回复
热议问题