Show helpful error message if no tmp folder is found #811

This commit is contained in:
Flavio Copes
2016-10-10 13:07:14 +02:00
parent 0b42f8e34c
commit ef063f0e7d
2 changed files with 8 additions and 0 deletions

View File

@@ -1183,6 +1183,13 @@ class AdminController
'message' => $this->admin->translate('PLUGIN_ADMIN.EXCEEDED_FILESIZE_LIMIT')
];
return false;
case UPLOAD_ERR_NO_TMP_DIR:
$this->admin->json_response = [
'status' => 'error',
'message' => $this->admin->translate('PLUGIN_ADMIN.UPLOAD_ERR_NO_TMP_DIR')
];
return false;
default:
$this->admin->json_response = [