From 2565e167700f10086d231e72f5ef7ac870053cc9 Mon Sep 17 00:00:00 2001 From: Morris Jobke Date: Tue, 7 May 2019 23:48:06 +0200 Subject: [PATCH] Fix public upload by also load the semaphore method Signed-off-by: Morris Jobke --- apps/files/js/semaphore.js | 4 ++++ apps/files_sharing/lib/Controller/ShareController.php | 1 + 2 files changed, 5 insertions(+) diff --git a/apps/files/js/semaphore.js b/apps/files/js/semaphore.js index 044f0af23f3..aa327e0f8a1 100644 --- a/apps/files/js/semaphore.js +++ b/apps/files/js/semaphore.js @@ -32,6 +32,10 @@ }; }; + // needed on public share page to properly register this + if (!OCA.Files) { + OCA.Files = {}; + } OCA.Files.Semaphore = Semaphore; })(); diff --git a/apps/files_sharing/lib/Controller/ShareController.php b/apps/files_sharing/lib/Controller/ShareController.php index 3bd65cd3974..0725e520b2d 100644 --- a/apps/files_sharing/lib/Controller/ShareController.php +++ b/apps/files_sharing/lib/Controller/ShareController.php @@ -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'); -- 2.39.5