Jad Joubran
Jad Joubran

Reputation: 2579

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)

Upvotes: 3

Views: 3761

Answers (4)

ekeyser
ekeyser

Reputation: 605

I've had this issue behind a squid3 proxy and the problem was resolved by the following squid configuration directive:

ignore_expect_100 on

Upvotes: 0

Adam
Adam

Reputation: 1371

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);

Upvotes: 4

Florian Mac Langlade
Florian Mac Langlade

Reputation: 1903

I had the same problem. I'm connected to a proxy... If I'm connected to an other network, it works :)

Upvotes: 1

Jad Joubran
Jad Joubran

Reputation: 2579

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

Upvotes: 2

Related Questions