Renée Kooi 39baf2ed7e examples: Update aws-presigned-url deps. пре 6 година
..
.gitignore 030fe49e74 examples: Add the AWS S3 server-side presigned URL example. пре 7 година
composer.json 030fe49e74 examples: Add the AWS S3 server-side presigned URL example. пре 7 година
composer.lock 030fe49e74 examples: Add the AWS S3 server-side presigned URL example. пре 7 година
index.html 4f4a741221 Fix some example names. пре 7 година
main.js fd5294c40a update docs, examples and tests to not set autoProceed: false, since that’s the default now пре 6 година
package-lock.json 39baf2ed7e examples: Update aws-presigned-url deps. пре 6 година
package.json 39baf2ed7e examples: Update aws-presigned-url deps. пре 6 година
readme.md 030fe49e74 examples: Add the AWS S3 server-side presigned URL example. пре 7 година
s3-sign.php 94d6267952 docs/examples: Fix CORS policy in S3 docs and fix reading body in PHP example. пре 7 година
serve.js 39baf2ed7e examples: Update aws-presigned-url deps. пре 6 година

readme.md

Uppy + AWS S3 Example

This example uses a server-side PHP endpoint to sign uploads to S3.

Running It

This example uses the AWS PHP SDK. To install it, get composer and run composer update in this folder.

cd ./examples/aws-presigned-url
composer update

Configure AWS S3 credentials using environment variables or a credentials file in ~/.aws/credentials. Configure a bucket name and region in the s3-sign.php file.

Then install npm dependencies using

npm install

and start the demo server using

npm start

The demo should now be available at http://localhost:8080.

Optionally, provide a port in the PORT environment variable:

PORT=8080 npm start