[英]How to upload files to a Amazon S3 bucket subfolder via POST?
I'm using plupload 1.4.2 to upload files directly to an Amazon S3 bucket.我正在使用 plupload 1.4.2 将文件直接上传到 Amazon S3 存储桶。 The question is, how can I upload them to a subfolder directly?
问题是,我怎样才能将它们直接上传到子文件夹? What parameters should I configure in the policy or plupload object config?
我应该在策略或 plupload 对象配置中配置哪些参数?
Amazon S3 there is no concept of folder or subfolder. Amazon S3 没有文件夹或子文件夹的概念。 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). Amazon S3 将创建(虚构的)文件夹和子文件夹。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.