Skip to content

Instantly share code, notes, and snippets.

View jaredcassidy's full-sized avatar

Jared Cassidy jaredcassidy

  • Port Elizabeth
View GitHub Profile
@jaredcassidy
jaredcassidy / pluploads3sig4example.php
Last active July 2, 2021 21:23
Plupload S3 AWS Signature Version 4 example
<?php
$access_key = "<your access key here>"; //Access Key
$secret_key = "<your secret key here>"; //Secret Key
$my_bucket = "<your bucket name here>"; //bucket name
$region = "<your region here>"; //bucket region
$allowd_file_size = "31457280"; //30 MB allowed Size
//dates
$short_date = gmdate('Ymd'); //short date
$iso_date = gmdate("Ymd\THis\Z"); //iso format date