精细上传请求无法从vb6

时间:2015-12-02 15:49:06

标签: amazon-s3 fine-uploader

我正在使用以下策略格式并使用策略库64和签名sha base 64创建应用程序/ json格式但是获取

  

"尝试解析签名响应时出错:SyntaxError:意外的令牌"

你能说出我错的地方吗?

strToPolicy = "{
    ""expiration"": ""2015-01-01T12:00:00.000Z"", 
    ""conditions"": [ 
        {""bucket"": manishtests3.s3-website-ap-southeast-1.amazonaws.com }, 
        {""acl"": ""public-read"" },
        {""key"": my access key id},
        {""x-amz-meta-qqfilename"": Search.png},
    ]
}"

1 个答案:

答案 0 :(得分:0)

您的政策似乎只是格式错误的JSON ...请注意以下格式:

{
    "conditions": [
        {
            "bucket": "manishtests3.s3-website-ap-southeast-1.amazonaws.com"
        },
        {
            "acl": "public-read"
        },
        {
            "key": "my access key id"
        },
        {
            "x-amz-meta-qqfilename": "Search.png"
        }
    ],
    "expiration": "2015-01-01T12:00:00.000Z"
}

有关利用Fine Uploader和Amazon S3的更多信息,还有一个特定的example of Amazon S3 Policy Format