django - AWS S3 upload. Invalid according to Policy: Policy expired -
i'm using django server hosted on ec2 singapore. i'm using s3 bucket save files uploaded through django admin panel. upload files, i'm using django-s3direct
.
when upload files using local machine on eastern american time, prevents me uploading files citing:
<message>invalid according policy: policy expired.</message>
i've tried solutions from:
fine uploader getting "policy expired" message sending s3 some , here: https://github.com/fineuploader/fine-uploader/issues/1387
when check uploaded time , utc time, there's no difference. how fix error?
edit: noted, upload works on localhost doesn't work on server hosted on aws ec2.
similar issues refer inaccurate clock. should clock of client not server. suggest writing code check whether client's time in sync known , accurate time server. if time out of sync, friendly message can shown user update system's clock. if time in sync, can proceed upload.
Comments
Post a Comment