|
6 年之前 | |
---|---|---|
.. | ||
.gitignore | 7 年之前 | |
composer.json | 7 年之前 | |
composer.lock | 7 年之前 | |
index.html | 7 年之前 | |
main.js | 6 年之前 | |
package-lock.json | 7 年之前 | |
package.json | 7 年之前 | |
readme.md | 7 年之前 | |
s3-sign.php | 7 年之前 | |
serve.js | 6 年之前 |
This example uses a server-side PHP endpoint to sign uploads to S3.
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