Error on uploading to S3. It seems like something has been expired but which one?

0

I was trying to upload a file to S3 on Client Side (browser) and i got this error. I got to know that this error can be caused when Date is expired or upload key is expired. How can i know Which case it was ?

The Error is like following..

<Error>
    <Code> 
        AccessDenied
    </Code>
    <Message>
        Invalid according to Policy: Policy expired.
    </Message>
    <RequestId>
        B360T30N5C7FTT3G
    </RequestId>
    <HostId>
        tgppE5mLIdkhXZOzhVkJWgkTeAkDyEwx9iFSVVwkWX9iTNNA+lOEoMs9qvHABCqm3BHP9vAST20=
    </HostId>
</Error>
Jihoon
已提問 2 年前檢視次數 162 次
1 個回答
1

Please note that for uploading an object using POST operation, you can setup a 'POST policy' for making authenticated requests that specifies conditions to validate the request. For example, the request must meet "expiration" which specifies the expiration date and time of the POST policy. If you upload an object using POST operation and the POST policy, the POST policy's expiration time will be checked against the client time. If the client time earlier than the expiration time, then you get the policy expired error. To resolve the issue, try changing the "expiration" time in the policy to current or future time. According to AWS POST policy, the upload must happen before the expiration time. Please check the link below for details. https://docs.aws.amazon.com/AmazonS3/latest/API/sigv4-HTTPPOSTConstructPolicy.html Request you to check the expiration time in the POST policy in your client and modify it to future time, before performing post operation. Please note that AWS support does not have insights to client side settings such as POST policy.

AWS
支援工程師
Ipsha
已回答 1 個月前

您尚未登入。 登入 去張貼答案。

一個好的回答可以清楚地回答問題並提供建設性的意見回饋,同時有助於提問者的專業成長。

回答問題指南