Browse Source
Fix public upload by also load the semaphore method
Signed-off-by: Morris Jobke <hey@morrisjobke.de>
pull/15432/head
Morris Jobke
7 years ago
No known key found for this signature in database
GPG Key ID: FE03C3A163FEDE68
2 changed files with
5 additions and
0 deletions
-
apps/files/js/semaphore.js
-
apps/files_sharing/lib/Controller/ShareController.php
|
|
|
@ -32,6 +32,10 @@ |
|
|
|
}; |
|
|
|
}; |
|
|
|
|
|
|
|
// needed on public share page to properly register this
|
|
|
|
if (!OCA.Files) { |
|
|
|
OCA.Files = {}; |
|
|
|
} |
|
|
|
OCA.Files.Semaphore = Semaphore; |
|
|
|
|
|
|
|
})(); |
|
|
|
@ -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'); |
|
|
|
|