]> source.dussan.org Git - nextcloud-server.git/commitdiff
Fixed public upload error that prevents upload
authorVincent Petry <pvince81@owncloud.com>
Sun, 1 Sep 2013 14:14:46 +0000 (16:14 +0200)
committerVincent Petry <pvince81@owncloud.com>
Sun, 1 Sep 2013 14:14:46 +0000 (16:14 +0200)
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.

apps/files/js/file-upload.js

index 3d620c5640b3dcf76272f2e6ede3e9c5cb68455b..e9b07518bab270115864e55bbd07b847b42967b7 100644 (file)
@@ -348,4 +348,5 @@ $(document).ready(function() {
                        $('#new>a').click();
                });
        });
+       window.file_upload_param = file_upload_param;
 });