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

后端 未结 1 1061
心在旅途
心在旅途 2021-02-14 12:47

I\'m using plupload 1.4.2 to upload files directly to an Amazon S3 bucket. The question is, how can I upload them to a subfolder directly? What parameters should I configure in

相关标签:
1条回答
  • 2021-02-14 13:04

    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 and subfolder.

    0 讨论(0)
提交回复
热议问题