aboutsummaryrefslogtreecommitdiffstats
path: root/apps/files/ajax/upload.php
diff options
context:
space:
mode:
Diffstat (limited to 'apps/files/ajax/upload.php')
-rw-r--r--apps/files/ajax/upload.php4
1 files changed, 4 insertions, 0 deletions
diff --git a/apps/files/ajax/upload.php b/apps/files/ajax/upload.php
index 145f40c50da..4ed51c52775 100644
--- a/apps/files/ajax/upload.php
+++ b/apps/files/ajax/upload.php
@@ -58,6 +58,10 @@ if (empty($_POST['dirToken'])) {
OCP\JSON::callCheck();
+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)