Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Amazon S3 putObject() - not working - PHP

I'm using the standalone PHP-S3 class:
http://undesigned.org.za/2007/10/22/amazon-s3-php-class

I've tried all the ready made tutorials, downloaded the source, changed the corresponding variables (set my bucket, access_key, access_secret).

I'm guetting the following error whenever I try to upload any file:
Warning: S3::putObject(): [417] Unexpected HTTP status in C:\Users\Jad\Dropbox\www\test\S3.php on line 312

Note: My bucket already exists and I even allowed all the permissions to the user everyone (temporarily for it to work but it's still not working)

like image 627
Jad Joubran Avatar asked Nov 29 '25 22:11

Jad Joubran


2 Answers

I had the same problem. If you are connected through a proxy in my case it worked connection to S3 over SSL.

$s3 = new S3(S3KEY, S3SECRET,  true);
like image 148
Adam Avatar answered Dec 01 '25 11:12

Adam


So I created a new bucket in the US (the last one was in Ireland) and everything works smoothly now.

like image 37
Jad Joubran Avatar answered Dec 01 '25 12:12

Jad Joubran



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!