Upload a base64 image data from NodeJs to AWS S3 Bucket

Daveyon Mayne
1 min readDec 28, 2017

--

I write about code that works for me. Codes I’ve tried from the web seem to work for others but, surprisingly, not for me. So I’ve created a simple gist, modified from homam’s.

Before, I wanted to POST a base64 string using GraphQL but GraphQL does not support posting base64 to your server as the data is considered to be too large.

****** 💥 Updated July 13th, 2019 to use Promise 💥********

Upload file:

--

--

Daveyon Mayne

Full-Stack Web Developer. Loves cooking, singing and doing accounting. imaynerobotics.com