Created
January 6, 2014 20:09
-
-
Save bikegriffith/8289025 to your computer and use it in GitHub Desktop.
Cannot create folder inside bucket with AWS SDK for PHP
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| $s3->putObject(['Bucket'=>'MyBucket', 'Key'=>'MyFolder/', 'Body'=>'', 'ContentLength'=>0]); | |
| PHP Fatal error: Uncaught exception 'Guzzle\Http\Exception\CurlException' with message '[curl] 35: [url] https://s3.amazonaws.com/MyBucket/MyFolder/' in /home/mike/src/awstest/vendor/guzzle/guzzle/src/Guzzle/Http/Curl/CurlMulti.php:338 | |
| Stack trace: | |
| #0 /home/mike/src/awstest/vendor/guzzle/guzzle/src/Guzzle/Http/Curl/CurlMulti.php(279): Guzzle\Http\Curl\CurlMulti->isCurlException(Object(Guzzle\Http\Message\EntityEnclosingRequest), Object(Guzzle\Http\Curl\CurlHandle), Array) | |
| #1 /home/mike/src/awstest/vendor/guzzle/guzzle/src/Guzzle/Http/Curl/CurlMulti.php(244): Guzzle\Http\Curl\CurlMulti->processResponse(Object(Guzzle\Http\Message\EntityEnclosingRequest), Object(Guzzle\Http\Curl\CurlHandle), Array) | |
| #2 /home/mike/src/awstest/vendor/guzzle/guzzle/src/Guzzle/Http/Curl/CurlMulti.php(227): Guzzle\Http\Curl\CurlMulti->processMessages() | |
| #3 /home/mike/src/awstest/vendor/guzzle/guzzle/src/Guzzle/Http/Curl/CurlMulti.php(211): Guzzle\Http\Curl\CurlMulti->executeHandles() | |
| #4 /home/mike/src/awstest/vendor/guzzle/guz in /home/mike/src/awstest/vendor/aws/aws-sdk-php/src/Aws/Common/Client/AbstractClient.php on line 286 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment