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 base64 image data string directly to s3 using JavaScript (bypassing the server-side). The problem is that since this isn't a file, how do I upload the base64 encoded data directly to S3 and save it as a file there?