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年前163ビュー
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ヶ月前

ログインしていません。 ログイン 回答を投稿する。

優れた回答とは、質問に明確に答え、建設的なフィードバックを提供し、質問者の専門分野におけるスキルの向上を促すものです。

質問に答えるためのガイドライン

関連するコンテンツ