diff options
author | Vincent Petry <vincent@nextcloud.com> | 2022-05-18 15:54:27 +0300 |
---|---|---|
committer | Carl Schwan <carl@carlschwan.eu> | 2022-08-03 14:24:13 +0300 |
commit | f1ab964819603b39442fe20150a982439f688d11 (patch) | |
tree | bdf1fc8e95c3a6f2c3831491b596ce122e08f29b /apps/files | |
parent | 6088f720bd0e80307268089800b115e706bc664c (diff) |
Add share attributes + prevent download permission
Makes it possible to store download permission
Signed-off-by: Vincent Petry <vincent@nextcloud.com>
Diffstat (limited to 'apps/files')
-rw-r--r-- | apps/files/js/fileinfomodel.js | 9 |
1 files changed, 9 insertions, 0 deletions
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 @@ -84,6 +84,15 @@ }, /** + * 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 * @return ajax call object |