- Make sure that you have an AWS account as well as your
~/.aws/credentials
set up - Change the
bucketName
variablestoreUpload.js
to point to your S3 bucket - run
npm install
- run
npm start
curl localhost:8000/graphql \
-F operations='{ "query": "mutation ($file: Upload!) { uploadFile(id: 89283198231, file: $file) {id, success, filename, location, mimetype } }", "variables": { "file": null } }' \
-F map='{ "0": ["variables.file"] }' \
-F 0=@testImage.jpg
Create a config file for bucket names ;)