Skip to content

Instantly share code, notes, and snippets.

View charlesastwood's full-sized avatar

Charles Astwood charlesastwood

View GitHub Profile
@tim-peterson
tim-peterson / UploadHandlerS3.php
Last active January 28, 2021 23:42
jQuery-File-Upload S3 PHP upload directly using AWS PHP SDK V2 (w/ optional Dropbox Chooser-selected files) https://github.com/blueimp/jQuery-File-Upload
<?php
use Aws\Common\Aws;
use Aws\S3\Exception\S3Exception;
// make sure the SDK is installed
// I've used Composer to autoload it: http://docs.aws.amazon.com/aws-sdk-php/guide/latest/installation.html
/*
* jQuery File Upload Plugin PHP Class 7.1.0
* https://github.com/blueimp/jQuery-File-Upload