Skip to content
Snippets Groups Projects
Commit 492c0571 authored by Robin Appelman's avatar Robin Appelman
Browse files

fix detection of public upload in filelist.js

parent 86342224
Branches
No related tags found
No related merge requests found
...@@ -436,7 +436,7 @@ $(document).ready(function(){ ...@@ -436,7 +436,7 @@ $(document).ready(function(){
} }
var date=new Date(); var date=new Date();
var param = {}; var param = {};
if ($('#publicUploadRequestToken')) { if ($('#publicUploadRequestToken').length) {
param.download_url = document.location.href + '&download&path=/' + $('#dir').val() + '/' + uniqueName; param.download_url = document.location.href + '&download&path=/' + $('#dir').val() + '/' + uniqueName;
} }
// create new file context // create new file context
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment