Merge pull request #15439 from nextcloud/backport/15432/stable16

[stable16] Fix public upload by also load the semaphore method
This commit is contained in:
Morris Jobke 2019-05-08 10:23:03 +02:00 committed by GitHub
commit 3102633260
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 5 additions and 0 deletions

View File

@ -32,6 +32,10 @@
}; };
}; };
// needed on public share page to properly register this
if (!OCA.Files) {
OCA.Files = {};
}
OCA.Files.Semaphore = Semaphore; OCA.Files.Semaphore = Semaphore;
})(); })();

View File

@ -412,6 +412,7 @@ class ShareController extends AuthPublicShareController {
} }
// Load files we need // Load files we need
\OCP\Util::addScript('files', 'semaphore');
\OCP\Util::addScript('files', 'file-upload'); \OCP\Util::addScript('files', 'file-upload');
\OCP\Util::addStyle('files_sharing', 'publicView'); \OCP\Util::addStyle('files_sharing', 'publicView');
\OCP\Util::addScript('files_sharing', 'public'); \OCP\Util::addScript('files_sharing', 'public');