What is the syntax for uploading a file directly to a folder in AWS S3 with the php sdk?
I was successful in uploading to a bucket using:
$response = $s3->create_object($bucket, $file_name, array('fileUpload' => $file_path))
tx!
Try this way
$s3->create_object($bucket, 'folder/filename', $options)
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With