diff options
Diffstat (limited to 'apps/files')
-rw-r--r-- | apps/files/ajax/upload.php | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/apps/files/ajax/upload.php b/apps/files/ajax/upload.php index 4053cf5f8b0..d9960494cc8 100644 --- a/apps/files/ajax/upload.php +++ b/apps/files/ajax/upload.php @@ -14,6 +14,7 @@ if (!isset($_FILES['files'])) { OCP\JSON::error(array('data' => array( 'message' => $l->t( 'No file was uploaded. Unknown error' )))); exit(); } + foreach ($_FILES['files']['error'] as $error) { if ($error != 0) { $errors = array( |