diff options
author | Thomas Müller <thomas.mueller@tmit.eu> | 2014-05-22 12:20:27 +0200 |
---|---|---|
committer | Thomas Müller <thomas.mueller@tmit.eu> | 2014-05-22 12:20:27 +0200 |
commit | 201cc59fe0e1ad0aadce599872275493b0c6d76b (patch) | |
tree | 8ca9f6bb3193d9a38c03bd63b5562edcd1c3e681 /apps/files | |
parent | 4f0370f1da1a99dd1fb24124a794666e2afe8db6 (diff) | |
download | nextcloud-server-201cc59fe0e1ad0aadce599872275493b0c6d76b.tar.gz nextcloud-server-201cc59fe0e1ad0aadce599872275493b0c6d76b.zip |
php upload errors are written to log
Diffstat (limited to 'apps/files')
-rw-r--r-- | apps/files/ajax/upload.php | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/apps/files/ajax/upload.php b/apps/files/ajax/upload.php index a5ce7b257da..9750173d110 100644 --- a/apps/files/ajax/upload.php +++ b/apps/files/ajax/upload.php @@ -88,7 +88,9 @@ foreach ($_FILES['files']['error'] as $error) { UPLOAD_ERR_NO_TMP_DIR => $l->t('Missing a temporary folder'), UPLOAD_ERR_CANT_WRITE => $l->t('Failed to write to disk'), ); - OCP\JSON::error(array('data' => array_merge(array('message' => $errors[$error]), $storageStats))); + $errorMessage = $errors[$error]; + \OC::$server->getLogger()->alert("Upload error: $error - $errorMessage", array('app' => 'files')); + OCP\JSON::error(array('data' => array_merge(array('message' => $errorMessage), $storageStats))); exit(); } } |