diff options
author | Vincent Petry <pvince81@owncloud.com> | 2015-08-12 10:58:40 +0200 |
---|---|---|
committer | Vincent Petry <pvince81@owncloud.com> | 2015-08-12 10:58:40 +0200 |
commit | 1add97feae29988a555fb1d27fc2e81d3bbf1b82 (patch) | |
tree | 48a66e3cfc81e70274ebca138541ff1b825639b0 /core | |
parent | e9a1a8cf75c1bcc22e88d91047df00da7f9e6ac0 (diff) | |
parent | 897e99ac588c6a19b280f2b948c75643786c41af (diff) | |
download | nextcloud-server-1add97feae29988a555fb1d27fc2e81d3bbf1b82.tar.gz nextcloud-server-1add97feae29988a555fb1d27fc2e81d3bbf1b82.zip |
Merge pull request #17753 from oparoz/fix-previews-for-public-uploads
[stable8.1] Fix preview of old file on public upload conflicts
Diffstat (limited to 'core')
-rw-r--r-- | core/js/oc-dialogs.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/core/js/oc-dialogs.js b/core/js/oc-dialogs.js index 9f88c268369..6b915c69415 100644 --- a/core/js/oc-dialogs.js +++ b/core/js/oc-dialogs.js @@ -388,9 +388,9 @@ var OCdialogs = { c: original.etag, forceIcon: 0 }; - var previewpath = OC.generateUrl('/core/preview.png?') + $.param(urlSpec); + var previewpath = Files.generatePreviewUrl(urlSpec); // Escaping single quotes - previewpath = previewpath.replace(/'/g, "%27") + previewpath = previewpath.replace(/'/g, "%27"); $originalDiv.find('.icon').css({"background-image": "url('" + previewpath + "')"}); getCroppedPreview(replacement).then( function(path){ |