Fix public upload to not close session when encryption is on
The encryption app needs to create keys when uploading files, so the session needs to be kept open in such case.
This commit is contained in:
parent
d87001a093
commit
e72b2e6e3b
|
@ -58,7 +58,10 @@ if (empty($_POST['dirToken'])) {
|
|||
|
||||
|
||||
OCP\JSON::callCheck();
|
||||
\OC::$session->close();
|
||||
if (!\OCP\App::isEnabled('files_encryption')) {
|
||||
// encryption app need to create keys later, so can't close too early
|
||||
\OC::$session->close();
|
||||
}
|
||||
|
||||
|
||||
// get array with current storage stats (e.g. max file size)
|
||||
|
|
Loading…
Reference in New Issue