From 2184858d0f9f0ae8ba790209f533fc2defe2d0ac Mon Sep 17 00:00:00 2001 From: Adam Jimenez Date: Fri, 15 Nov 2013 17:13:13 +0000 Subject: [PATCH] fall back to getting mime type from uri --- S3.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/S3.php b/S3.php index 2078f929..3f430fe9 100644 --- a/S3.php +++ b/S3.php @@ -654,7 +654,7 @@ public static function putObject($input, $bucket, $uri, $acl = self::ACL_PRIVATE elseif (isset($input['file'])) $input['type'] = self::__getMIMEType($input['file']); else - $input['type'] = 'application/octet-stream'; + $input['type'] = self::__getMIMEType($uri); } if ($storageClass !== self::STORAGE_CLASS_STANDARD) // Storage class