aboutsummaryrefslogtreecommitdiffstats
path: root/apps/files_external/3rdparty/aws-sdk-php/Aws/S3/Model/MultipartUpload/UploadBuilder.php
diff options
context:
space:
mode:
Diffstat (limited to 'apps/files_external/3rdparty/aws-sdk-php/Aws/S3/Model/MultipartUpload/UploadBuilder.php')
-rw-r--r--apps/files_external/3rdparty/aws-sdk-php/Aws/S3/Model/MultipartUpload/UploadBuilder.php7
1 files changed, 4 insertions, 3 deletions
diff --git a/apps/files_external/3rdparty/aws-sdk-php/Aws/S3/Model/MultipartUpload/UploadBuilder.php b/apps/files_external/3rdparty/aws-sdk-php/Aws/S3/Model/MultipartUpload/UploadBuilder.php
index 6da35ef6532..cae7658d72e 100644
--- a/apps/files_external/3rdparty/aws-sdk-php/Aws/S3/Model/MultipartUpload/UploadBuilder.php
+++ b/apps/files_external/3rdparty/aws-sdk-php/Aws/S3/Model/MultipartUpload/UploadBuilder.php
@@ -20,7 +20,6 @@ use Aws\Common\Enum\UaString as Ua;
use Aws\Common\Exception\InvalidArgumentException;
use Aws\Common\Model\MultipartUpload\AbstractUploadBuilder;
use Aws\S3\Model\Acp;
-use Guzzle\Common\Collection;
/**
* Easily create a multipart uploader used to quickly and reliably upload a
@@ -266,8 +265,10 @@ class UploadBuilder extends AbstractUploadBuilder
protected function initiateMultipartUpload()
{
// Determine Content-Type
- if ($mimeType = $this->source->getContentType()) {
- $this->commandOptions['ContentType'] = $mimeType;
+ if (!isset($this->commandOptions['ContentType'])) {
+ if ($mimeType = $this->source->getContentType()) {
+ $this->commandOptions['ContentType'] = $mimeType;
+ }
}
$params = array_replace(array(