diff options
author | Robin Appelman <robin@icewind.nl> | 2021-04-15 17:14:57 +0200 |
---|---|---|
committer | Robin Appelman <robin@icewind.nl> | 2021-04-21 15:25:58 +0200 |
commit | effb7dc8ba00c683e3b6717eaf1f358ce1c69b87 (patch) | |
tree | 6d9aa4d783242e56f2f971da6d74d05f66894d1e /tests/lib/Files/ObjectStore/S3Test.php | |
parent | d2ea068552eb144d491b76e0a0ef8266144dcf45 (diff) | |
download | nextcloud-server-effb7dc8ba00c683e3b6717eaf1f358ce1c69b87.tar.gz nextcloud-server-effb7dc8ba00c683e3b6717eaf1f358ce1c69b87.zip |
set mimetype for objects uploaded to object storages
Signed-off-by: Robin Appelman <robin@icewind.nl>
Diffstat (limited to 'tests/lib/Files/ObjectStore/S3Test.php')
-rw-r--r-- | tests/lib/Files/ObjectStore/S3Test.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/lib/Files/ObjectStore/S3Test.php b/tests/lib/Files/ObjectStore/S3Test.php index c1e7948e3c4..97814212382 100644 --- a/tests/lib/Files/ObjectStore/S3Test.php +++ b/tests/lib/Files/ObjectStore/S3Test.php @@ -25,7 +25,7 @@ use Icewind\Streams\Wrapper; use OC\Files\ObjectStore\S3; class MultiPartUploadS3 extends S3 { - public function writeObject($urn, $stream) { + public function writeObject($urn, $stream, string $mimetype = null) { $this->getConnection()->upload($this->bucket, $urn, $stream, 'private', [ 'mup_threshold' => 1, ]); |