Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 59af05e

Browse files
author
Prashant Sugand
committed
Merge pull request #5 from rasmusbe/master
Fix issue #3 Location parameter for putBucket bug
2 parents 888b4a0 + 26faecb commit 59af05e

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

libraries/S3.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -247,7 +247,7 @@ public static function putBucket($bucket, $acl = self::ACL_PRIVATE, $location =
247247
{
248248
$dom = new DOMDocument;
249249
$createBucketConfiguration = $dom->createElement('CreateBucketConfiguration');
250-
$locationConstraint = $dom->createElement('LocationConstraint', strtoupper($location));
250+
$locationConstraint = $dom->createElement('LocationConstraint', strtolower($location));
251251
$createBucketConfiguration->appendChild($locationConstraint);
252252
$dom->appendChild($createBucketConfiguration);
253253
$rest->data = $dom->saveXML();

0 commit comments

Comments
 (0)