summaryrefslogtreecommitdiffstats
path: root/apps/files/js/files.js
diff options
context:
space:
mode:
authorRobin Appelman <icewind@owncloud.com>2014-02-21 14:06:15 +0100
committerRobin Appelman <icewind@owncloud.com>2014-02-21 14:06:15 +0100
commit4715fb12c8001b8642c2e6dcef57ac216ef92c3d (patch)
tree7c6124f0a508e524770fb6fea6fc3a2d0ced816b /apps/files/js/files.js
parent3f52eb073d56ead07c8479b4cb9faa44e6868234 (diff)
downloadnextcloud-server-4715fb12c8001b8642c2e6dcef57ac216ef92c3d.tar.gz
nextcloud-server-4715fb12c8001b8642c2e6dcef57ac216ef92c3d.zip
Add url parameter to control whether previews should return 404 when the mimetype is unsupported
Diffstat (limited to 'apps/files/js/files.js')
-rw-r--r--apps/files/js/files.js1
1 files changed, 1 insertions, 0 deletions
diff --git a/apps/files/js/files.js b/apps/files/js/files.js
index 8b252e69a1d..1f4bd6794f3 100644
--- a/apps/files/js/files.js
+++ b/apps/files/js/files.js
@@ -786,6 +786,7 @@ Files.lazyLoadPreview = function(path, mime, ready, width, height, etag) {
}
previewURL = previewURL.replace('(', '%28');
previewURL = previewURL.replace(')', '%29');
+ previewURL += '&always=0';
// preload image to prevent delay
// this will make the browser cache the image