From a95c19e14b5a371240392de480278ee97c01ab12 Mon Sep 17 00:00:00 2001 From: Vincent Petry Date: Wed, 18 May 2022 14:54:27 +0200 Subject: Add share attributes + prevent download permission Makes it possible to store download permission Signed-off-by: Vincent Petry --- apps/files/js/fileinfomodel.js | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'apps/files/js') diff --git a/apps/files/js/fileinfomodel.js b/apps/files/js/fileinfomodel.js index 8e7b399544c..83a8c62592b 100644 --- a/apps/files/js/fileinfomodel.js +++ b/apps/files/js/fileinfomodel.js @@ -83,6 +83,15 @@ return OC.joinPaths(this.get('path'), this.get('name')); }, + /** + * Returns the mimetype of the file + * + * @return {string} mimetype + */ + getMimeType: function() { + return this.get('mimetype'); + }, + /** * Reloads missing properties from server and set them in the model. * @param properties array of properties to be reloaded -- cgit v1.2.3