Renée Kooi dfb23e58a6 website,examples: set a content-type header for S3 presigned PUT uploads 5 rokov pred
..
.gitignore 030fe49e74 examples: Add the AWS S3 server-side presigned URL example. 7 rokov pred
composer.json 030fe49e74 examples: Add the AWS S3 server-side presigned URL example. 7 rokov pred
composer.lock 030fe49e74 examples: Add the AWS S3 server-side presigned URL example. 7 rokov pred
index.html 4f4a741221 Fix some example names. 7 rokov pred
main.js dfb23e58a6 website,examples: set a content-type header for S3 presigned PUT uploads 5 rokov pred
package.json 10bc79574e lerna link convert (#1730) 5 rokov pred
readme.md 10bc79574e lerna link convert (#1730) 5 rokov pred
s3-sign.php dfb23e58a6 website,examples: set a content-type header for S3 presigned PUT uploads 5 rokov pred
serve.js 938dd3ec0b Tweaks to aws-presigned-url example so it doesn't hide build errors 6 rokov pred

readme.md

Uppy + AWS S3 Example

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

Running It

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

npm install

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 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