From e72b2e6e3be3057effd7465bf875552a5d95e9b9 Mon Sep 17 00:00:00 2001 From: Vincent Petry Date: Mon, 24 Mar 2014 17:34:37 +0100 Subject: [PATCH] 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. --- apps/files/ajax/upload.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/apps/files/ajax/upload.php b/apps/files/ajax/upload.php index 37c600e91da..4ed51c52775 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) -- 2.39.5