开发者

Amazon S3 folder manipulation with PHP

I have one instance in Amazon EC2. It is a Photobook. User ca开发者_如何学Cn signup and upload images and they can create a photobook. S for that we want S3 storage. I searched a lot for a good PHP class to manipulate these folders, images and html files.

Now I have no idea how we can create folder, delete folder and search for a folder.

Can anyone help find a solution for these folder/image manipulation requirements like create , search, delete?


The official PHP SDK?

http://aws.amazon.com/sdkforphp/

http://aws.amazon.com/php/


Good question. I was trying to do it now and didn't found the answer in any documentation.

So I discovered that you just need to send the entire path in $keyname parameter:

folder/my_file_name.jpg

The S3 service can recognize and creates automatically the folders.

I think as me, you were looking for a method create_folder-like.

Easy and tricky.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜