diff options
author | Morris Jobke <hey@morrisjobke.de> | 2019-03-08 09:41:33 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-03-08 09:41:33 +0100 |
commit | de935848a48fc5324db2a4038ed113b473f6d25a (patch) | |
tree | 7feaed22dfa290550bb9a6bcfd3a733617d2b753 | |
parent | 772303309df7e85c3e3f1d5c93daf473a5d1e3ac (diff) | |
parent | e4cffa00df6eda39787124729f921fd2a1bbe2bd (diff) | |
download | nextcloud-server-de935848a48fc5324db2a4038ed113b473f6d25a.tar.gz nextcloud-server-de935848a48fc5324db2a4038ed113b473f6d25a.zip |
Merge pull request #14589 from nextcloud/feature/noid/add-preview-information-as-optional-data
Add preview data as optional data for files
-rw-r--r-- | lib/public/RichObjectStrings/Definitions.php | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/lib/public/RichObjectStrings/Definitions.php b/lib/public/RichObjectStrings/Definitions.php index d1d636fe36b..69cabe638ad 100644 --- a/lib/public/RichObjectStrings/Definitions.php +++ b/lib/public/RichObjectStrings/Definitions.php @@ -254,6 +254,18 @@ class Definitions { 'description' => 'The full URL to the file', 'example' => 'http://localhost/index.php/f/42', ], + 'mimetype' => [ + 'since' => '16.0.0', + 'required' => false, + 'description' => 'The mimetype of the file/folder to allow clients to show a placeholder', + 'example' => 'text/plain', + ], + 'preview-available' => [ + 'since' => '16.0.0', + 'required' => false, + 'description' => 'Whether or not a preview is available. If `no` the mimetype icon should be used', + 'example' => 'yes', + ], ], ], 'highlight' => [ |