【发布时间】:2018-04-08 01:25:19
【问题描述】:
尝试使用 http post 进行浏览器上传时,出现错误:
(Error)
(Code)AccessDenied(/Code)
(Message) Invalid according to Policy: Policy expired.
(/Message)
(RequestId) 6C79F2BC4E51766A (/RequestId)
(HostId)
4uzKezeAmS/y0EAz47QevCu9Jh/3ivPxYRbOYn/Df+JoQnAgXNK+faFOmkDSlOukwynxUPzp4Uk=
(/HostId)
(/Error)
我尝试更改我的系统时钟时间, 我检查了到期时间设置为当前日期,未来日期最长为 5 分钟、1 天、1 个月、1 年
发布政策是:
{ "expiration": "2019-06-06T13:45:00.000Z",
"conditions": [
{"bucket": "tokendatabase"},
["starts-with", "$key", "user/user1/"],
{"acl": "public-read-write"},
{"success_action_redirect": ""},
["starts-with", "$Content-Type", "image/"],
{"x-amz-meta-uuid": "14365123651274"},
{"x-amz-server-side-encryption": "AES256"},
["starts-with", "$x-amz-meta-tag", ""],
{"x-amz-credential": "<Access KEY>/20180122/us-east-2/s3/aws4_request"},
{"x-amz-algorithm": "AWS4-HMAC-SHA256"},
{"x-amz-date": "20180122T000000Z" }
]
}
【问题讨论】:
-
请检查您的存储桶政策