Fix public upload by also load the semaphore method
Signed-off-by: Morris Jobke <hey@morrisjobke.de>
This commit is contained in:
parent
064fa5bdb5
commit
da3c3a04dc
|
@ -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;
|
||||||
|
|
||||||
})();
|
})();
|
||||||
|
|
|
@ -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');
|
||||||
|
|
Loading…
Reference in New Issue