Renée Kooi 6cbae6fa41 examples: Some fixes for DO 7 years ago
..
index.html cd242f82b4 examples: Add some text to the DO example page 7 years ago
main.js 1a93bfb556 Add DigitalOcean upload example. 7 years ago
package-lock.json 1a93bfb556 Add DigitalOcean upload example. 7 years ago
package.json 6cbae6fa41 examples: Some fixes for DO 7 years ago
readme.md 1a93bfb556 Add DigitalOcean upload example. 7 years ago
server.js 6cbae6fa41 examples: Some fixes for DO 7 years ago

readme.md

Uploading to DigitalOcean Spaces

This example uses Uppy to upload files to a DigitolOcean Space. DigitalOcean Spaces has an identical API to S3, so we can use the AwsS3 plugin. We use a custom signing endpoint (server.js) that uses the official AWS SDK to generate a presigned URL for our DO space.

To try this example, first run:

npm install

Then configure some environment variables and run it:

DO_REGION=ams3 \
DO_ACCESS_KEY=your_access_key_id \
DO_SECRET_KEY=your_secret_access_key \
DO_SPACE=your_space_name \
npm start