diff --git a/apps/files/ajax/upload.php b/apps/files/ajax/upload.php index 37c600e91da384b270d2883b8aa8cec9e4eecc76..4ed51c527759b49d4626016e44f36e69a3e72083 100644 --- a/apps/files/ajax/upload.php +++ b/apps/files/ajax/upload.php @@ -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)