summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--apps/files/ajax/upload.php5
1 files changed, 4 insertions, 1 deletions
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)