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
답변함 한 달 전

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

질문 답변하기에 대한 가이드라인

관련 콘텐츠