From 517ef52560ed27d3ed27e89663451d0f213cdaf9 Mon Sep 17 00:00:00 2001 From: Roeland Jago Douma Date: Wed, 9 Mar 2016 20:20:37 +0100 Subject: Add mimetype to OCS Share API output Fixes #23044 --- apps/files_sharing/api/share20ocs.php | 1 + 1 file changed, 1 insertion(+) (limited to 'apps/files_sharing/api') 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(); -- cgit v1.2.3