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