diff options
Diffstat (limited to 'apps/files')
-rw-r--r-- | apps/files/js/fileinfomodel.js | 9 | ||||
-rw-r--r-- | apps/files/src/services/FileInfo.js | 1 |
2 files changed, 10 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 diff --git a/apps/files/src/services/FileInfo.js b/apps/files/src/services/FileInfo.js index 8b62063e134..c09af45f495 100644 --- a/apps/files/src/services/FileInfo.js +++ b/apps/files/src/services/FileInfo.js @@ -47,6 +47,7 @@ export default async function(url) { <nc:mount-type /> <nc:is-encrypted /> <ocs:share-permissions /> + <nc:share-attributes /> <oc:tags /> <oc:favorite /> <oc:comments-unread /> |