diff options
author | Roeland Jago Douma <rullzer@owncloud.com> | 2016-03-09 20:20:37 +0100 |
---|---|---|
committer | Roeland Jago Douma <rullzer@owncloud.com> | 2016-03-10 15:41:17 +0100 |
commit | 517ef52560ed27d3ed27e89663451d0f213cdaf9 (patch) | |
tree | 855ab921c72087a9e422f6f0dcd4d80d84536da1 /apps/files_sharing/api | |
parent | b3c1379b8c15f4f81cbf1d2a3f4c63e41b4406ed (diff) | |
download | nextcloud-server-517ef52560ed27d3ed27e89663451d0f213cdaf9.tar.gz nextcloud-server-517ef52560ed27d3ed27e89663451d0f213cdaf9.zip |
Add mimetype to OCS Share API output
Fixes #23044
Diffstat (limited to 'apps/files_sharing/api')
-rw-r--r-- | apps/files_sharing/api/share20ocs.php | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/apps/files_sharing/api/share20ocs.php b/apps/files_sharing/api/share20ocs.php index 0c9e5473d9c..f31aa55e34d 100644 --- a/apps/files_sharing/api/share20ocs.php +++ b/apps/files_sharing/api/share20ocs.php @@ -115,6 +115,7 @@ class Share20OCS { } else { $result['item_type'] = 'file'; } + $result['mimetype'] = $node->getMimeType(); $result['storage_id'] = $node->getStorage()->getId(); $result['storage'] = $node->getStorage()->getCache()->getNumericStorageId(); $result['item_source'] = $node->getId(); |