aboutsummaryrefslogtreecommitdiffstats
path: root/apps/files/js/fileinfomodel.js
diff options
context:
space:
mode:
Diffstat (limited to 'apps/files/js/fileinfomodel.js')
-rw-r--r--apps/files/js/fileinfomodel.js9
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