关注本文并收到此错误。使用 python 签署策略文档
InvalidPolicyDocument
无效策略:无效 JSON.xxxxxxxxCD2EI80iQvdVKMvl8mrMKDG62Obva4jddKQhNGDPCstjDd
这是我的文档:
{
"conditions": [
{"bucket": "somebucket"},
[
"starts-with",
"$key",
"uploads/"
],
{"acl": "private"},
{"success_action_redirect": "http://www.foo.com/"},
[
"starts-with",
"$Content-Type",
""
],
[
"content-length-range",
0,
1048576
]
],
"expiration": "2014-01-01T00:00:00Z"
}
我知道这是一个有效的 JSON!