I'm using a Django server hosted on EC2 Singapore. I'm also using an S3 bucket to save files uploaded through the Django Admin panel. To upload files, I'm using django-s3direct
.
When I upload files using my local machine on Eastern American time, it prevents me from uploading the files citing:
<Message>Invalid according to Policy: Policy expired.</Message>
I've tried the solutions from:
Fine Uploader getting "Policy expired" message sending to S3 for some and here: https://github.com/FineUploader/fine-uploader/issues/1387
When I check the uploaded time and the UTC time, there's no difference. How do I fix this error?
EDIT: To be noted, the upload works perfectly on localhost but doesn't work on the server hosted on AWS EC2.