Using Uploadify to POST Directly to Amazon S3

前端 未结 3 1734
陌清茗
陌清茗 2021-01-18 11:19

Can anyone tell me how to use Uploadify to upload directly to Amazon S3?

My code is as follows:

$(\'#fileInput\').uploadify({
  \'fileDataName\' : \'         


        
3条回答
  •  [愿得一人]
    2021-01-18 12:08

    From this thread the uploadify forum:

    
    
    
    
    
    
    
    
    
    

    The base for the policy string is as follows:

    { "expiration": "2100-12-01T12:00:00.000Z",
    "conditions": [
      {"acl": "public-read" },
      {"bucket": "UPLOADBUCKET" },
      {"success_action_status" : '200'},
        ["starts-with", "$filename", "" ],
        ["starts-with", "$folder", "" ],
        ["starts-with", "$key", "foo"],
        ["content-length-range", 1, 209715200]
      ]
    }
    

提交回复
热议问题