开发者

How to upload files to a Amazon S3 bucket subfolder via POST?

开发者 https://www.devze.com 2023-02-21 01:46 出处:网络
I\'m using plupload 1.4.2 to upload files dir开发者_高级运维ectly to an Amazon S3 bucket. The question is, how can I upload them to a subfolder directly? What parameters should I configure in the poli

I'm using plupload 1.4.2 to upload files dir开发者_高级运维ectly to an Amazon S3 bucket. The question is, how can I upload them to a subfolder directly? What parameters should I configure in the policy or plupload object config?


Amazon S3 there is no concept of folder or subfolder. Only objects. And an object has a key.

If you wanna upload a file to a folder or subfolder, simply put the object key like this:

$key = "folder/subfolder/filename.extension";

And Amazon S3 will create the (imaginary) folder(s) and subfolder(s).

0

精彩评论

暂无评论...
验证码 换一张
取 消