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
You should try as below