]> source.dussan.org Git - nextcloud-server.git/commitdiff
Fix public upload by also load the semaphore method 15432/head
authorMorris Jobke <hey@morrisjobke.de>
Tue, 7 May 2019 21:48:06 +0000 (23:48 +0200)
committerMorris Jobke <hey@morrisjobke.de>
Tue, 7 May 2019 21:48:06 +0000 (23:48 +0200)
Signed-off-by: Morris Jobke <hey@morrisjobke.de>
apps/files/js/semaphore.js
apps/files_sharing/lib/Controller/ShareController.php

index 044f0af23f32b74709fb4313719aa6a13b11a28e..aa327e0f8a1b9d734c62398dc9ea717785666542 100644 (file)
                };
        };
 
+       // needed on public share page to properly register this
+       if (!OCA.Files) {
+               OCA.Files = {};
+       }
        OCA.Files.Semaphore = Semaphore;
 
 })();
index 3bd65cd3974b15367afc940b332d2aaaa353a60b..0725e520b2d3f84fe9e7b2471a462223172ab3c6 100644 (file)
@@ -412,6 +412,7 @@ class ShareController extends AuthPublicShareController {
                }
 
                // Load files we need
+               \OCP\Util::addScript('files', 'semaphore');
                \OCP\Util::addScript('files', 'file-upload');
                \OCP\Util::addStyle('files_sharing', 'publicView');
                \OCP\Util::addScript('files_sharing', 'public');