Renée Kooi 7b2283d8ef examples: add `npm run example` script il y a 5 ans
..
index.html cd242f82b4 examples: Add some text to the DO example page il y a 7 ans
main.js adeb2fecfa update docs, tests, and examples with companionUrl rename il y a 6 ans
package.json 10bc79574e lerna link convert (#1730) il y a 5 ans
readme.md 7b2283d8ef examples: add `npm run example` script il y a 5 ans
server.js e74690e20c examples: remove UPPYSERVER_ references il y a 5 ans

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 @uppy/companion with a custom endpoint configuration that points to DigitalOcean.

Running it

To run this example, make sure you've correctly installed the repository root:

npm install

That will also install the dependencies for this example.

Then, again in the repository root, configure some environment variables, and run:

COMPANION_AWS_REGION=ams3 \
COMPANION_AWS_KEY=your_access_key_id \
COMPANION_AWS_SECRET=your_secret_access_key \
COMPANION_AWS_BUCKET=your_space_name \
npm run example digitalocean-spaces