I am (trying) to implement a simple php/curl based option to upload a pdf file to amazon s3 (based on this example here https://usefulangle.com/post/34/aws-s3-upload-api-php