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 /lib/public/Files/ObjectStore/IObjectStore.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 'lib/public/Files/ObjectStore/IObjectStore.php')
-rw-r--r-- | lib/public/Files/ObjectStore/IObjectStore.php | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/public/Files/ObjectStore/IObjectStore.php b/lib/public/Files/ObjectStore/IObjectStore.php index e9d948682f8..ea97cd7d384 100644 --- a/lib/public/Files/ObjectStore/IObjectStore.php +++ b/lib/public/Files/ObjectStore/IObjectStore.php @@ -52,10 +52,11 @@ interface IObjectStore { /** * @param string $urn the unified resource name used to identify the object * @param resource $stream stream with the data to write + * @param string|null $mimetype the mimetype to set for the remove object @since 22.0.0 * @throws \Exception when something goes wrong, message will be logged * @since 7.0.0 */ - public function writeObject($urn, $stream); + public function writeObject($urn, $stream, string $mimetype = null); /** * @param string $urn the unified resource name used to identify the object |