aboutsummaryrefslogtreecommitdiffstats
path: root/lib/private/Files/ObjectStore/ObjectStoreStorage.php
diff options
context:
space:
mode:
authorRobin Appelman <robin@icewind.nl>2021-04-15 17:14:57 +0200
committerRobin Appelman <robin@icewind.nl>2021-04-21 15:25:58 +0200
commiteffb7dc8ba00c683e3b6717eaf1f358ce1c69b87 (patch)
tree6d9aa4d783242e56f2f971da6d74d05f66894d1e /lib/private/Files/ObjectStore/ObjectStoreStorage.php
parentd2ea068552eb144d491b76e0a0ef8266144dcf45 (diff)
downloadnextcloud-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 'lib/private/Files/ObjectStore/ObjectStoreStorage.php')
-rw-r--r--lib/private/Files/ObjectStore/ObjectStoreStorage.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/private/Files/ObjectStore/ObjectStoreStorage.php b/lib/private/Files/ObjectStore/ObjectStoreStorage.php
index 5d2cbe61ab6..598dd4f80ae 100644
--- a/lib/private/Files/ObjectStore/ObjectStoreStorage.php
+++ b/lib/private/Files/ObjectStore/ObjectStoreStorage.php
@@ -486,13 +486,13 @@ class ObjectStoreStorage extends \OC\Files\Storage\Common {
]);
$size = $writtenSize;
});
- $this->objectStore->writeObject($urn, $countStream);
+ $this->objectStore->writeObject($urn, $countStream, $mimetype);
if (is_resource($countStream)) {
fclose($countStream);
}
$stat['size'] = $size;
} else {
- $this->objectStore->writeObject($urn, $stream);
+ $this->objectStore->writeObject($urn, $stream, $mimetype);
}
} catch (\Exception $ex) {
if (!$exists) {