Antoine du Hamel 01d7ea13e9 meta: use Yarn v3 instead of npm (#3237) %!s(int64=3) %!d(string=hai) anos
..
index.html cd242f82b4 examples: Add some text to the DO example page %!s(int64=7) %!d(string=hai) anos
main.js 764c2ccada Update Linter (#2796) %!s(int64=4) %!d(string=hai) anos
package.json 01d7ea13e9 meta: use Yarn v3 instead of npm (#3237) %!s(int64=3) %!d(string=hai) anos
readme.md 55e0ffd04a Add retext to markdown linter (#3024) %!s(int64=3) %!d(string=hai) anos
server.js c1d15abf10 error on import lint failure + some misc lint fixes (#2813) %!s(int64=4) %!d(string=hai) anos

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
npm run build

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