/upload-s3-docker-nginx-html-php

Self contained web page to upload S3 assets to a bucket. [Docker,nginx,php]

Primary LanguagePHP

aws-s3-upload-html-php

This sets up a simple web page to upload S3 assets to a bucket. You do NOT need to setup a webserver or handle any php configuration.

How to run it

Create a config.php file by copying config.sample.php and filling out your AWS credentials

$bucket = "bucket-name";
$awsCredentials = array(
    'credentials' => array(
        'key'    => '[YOUR-AWS-KEY]',
        'secret' => '[YOUR-AWS-SECRET',
    )
);

To start:

docker-compose up

To use:

http://localhost:8080/upload.php