Reputation: 7878
I am trying to upload a file so Amazon S3 Server using PHP. So far I've only managed to upload a file to a bucket (I am using amazon's php class with the putObjectFile method) . The problem is I can't upload to a specific folder inside a bucket. lets say I want to upload here - mybucket/folder . The method gives an error that it can't resolve mybucket (however if I try to upload directly to mybucket it does work) .
Any help would be really appreciated
Upvotes: 1
Views: 1074
Reputation: 15981
You should try as below
$s3->create_object($bucket, 'folder/filename', $options)
Upvotes: 0