mirror of
https://github.com/getgrav/grav-plugin-admin.git
synced 2026-05-06 09:07:22 +02:00
Show helpful error message if no tmp folder is found #811
This commit is contained in:
@@ -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 = [
|
||||
|
||||
Reference in New Issue
Block a user