A demo to try uploading file to Amazon S3 from the browser without exposing the user API keys by using presigned url.
- Uploading files
- Adding a prefix to upload so that it does not overwrite with other files with the same file name
- Using session and timestamp prefix to the key
Set up necessary permissions on AWS
https://softwareontheroad.com/aws-s3-secure-direct-upload/
Amazon S3 Presigned POSTs
https://docs.amazonaws.cn/zh_cn/aws-sdk-php/guide/latest/service/s3-presigned-post.html
AJAX FormData POST
https://stackoverflow.com/questions/21044798/how-to-use-formdata-for-ajax-file-upload
Other resources
Kong Jin Jie / Swift DevLabs