diff options
author | Vincent Petry <pvince81@owncloud.com> | 2013-09-01 16:14:46 +0200 |
---|---|---|
committer | Vincent Petry <pvince81@owncloud.com> | 2013-09-01 16:14:46 +0200 |
commit | 307b673b79120d79c406927ee8a5f3ef83c02af2 (patch) | |
tree | c111a4a6e1dcff264914deb6e6020054c711a0c6 | |
parent | 92e90c8eb995c886b3e9cd77c14e3f0b25b95cd7 (diff) | |
download | nextcloud-server-307b673b79120d79c406927ee8a5f3ef83c02af2.tar.gz nextcloud-server-307b673b79120d79c406927ee8a5f3ef83c02af2.zip |
Fixed public upload error that prevents upload
Public upload is broken because the file_upload_param variable expected
to exist by public.js didn't.
This fix sets the variable scope to the window to make it accessible
outside.
-rw-r--r-- | apps/files/js/file-upload.js | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/apps/files/js/file-upload.js b/apps/files/js/file-upload.js index 3d620c5640b..e9b07518bab 100644 --- a/apps/files/js/file-upload.js +++ b/apps/files/js/file-upload.js @@ -348,4 +348,5 @@ $(document).ready(function() { $('#new>a').click(); }); }); + window.file_upload_param = file_upload_param; }); |