diff options
author | Robin Appelman <icewind@owncloud.com> | 2015-09-11 16:18:27 +0200 |
---|---|---|
committer | Robin Appelman <icewind@owncloud.com> | 2015-09-15 14:32:07 +0200 |
commit | 72cfeaf157d28c72c61b4ff69a71119deebd5648 (patch) | |
tree | 6df570de7f7d58032f76b67cefd95ea6ba5e8062 /apps/files/js/fileinfomodel.js | |
parent | 98966329bfc67030db8e3088ddd4362390a1b651 (diff) | |
download | nextcloud-server-72cfeaf157d28c72c61b4ff69a71119deebd5648.tar.gz nextcloud-server-72cfeaf157d28c72c61b4ff69a71119deebd5648.zip |
recognize eps, psd and illustrator as image
Diffstat (limited to 'apps/files/js/fileinfomodel.js')
-rw-r--r-- | apps/files/js/fileinfomodel.js | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/apps/files/js/fileinfomodel.js b/apps/files/js/fileinfomodel.js index 22b1ca9ff0c..de1b143a160 100644 --- a/apps/files/js/fileinfomodel.js +++ b/apps/files/js/fileinfomodel.js @@ -57,7 +57,13 @@ * @return {boolean} true if this is an image, false otherwise */ isImage: function() { - return this.has('mimetype') ? this.get('mimetype').substr(0, 6) === 'image/' : false; + if (!this.has('mimetype')) { + return false; + } + return this.get('mimetype').substr(0, 6) === 'image/' + || this.get('mimetype') === 'application/postscript' + || this.get('mimetype') === 'application/illustrator' + || this.get('mimetype') === 'application/x-photoshop'; }, /** |