Example project to show how to upload using presign urls using the AWS S3 V3 Client with Storj
In the project directory, run:
npm start
Runs the app in the development mode.
https://www.youtube.com/watch?v=F6LdiDzitFo
First request the presigned url from the express endpoint, including a key
param for the filename.
curl -X POST http://localhost:3001/presign -d 'key=storj-tree.png'
Response
{"url":"<presigned url>"}%
Then use curl to upload a file to Storj
curl -X PUT --data-binary @storj-tree.png -H 'Content-Type: image/png' <presigned url>
In addition to curl you can also upload using a static site site in the browser.