mirror of
https://github.com/flarum/core.git
synced 2025-08-22 16:14:00 +02:00
Add extra error handling for avatar file size & large payload (#3042)
* Add extra error handling for avatar file size & large payload * Change error message to return 'upload failure' on most errors instead of 'no file' message
This commit is contained in:
committed by
GitHub
parent
1aa61f1f01
commit
eb0dd1f0d0
@@ -28,6 +28,8 @@ validation:
|
||||
ends_with: "The :attribute must end with one of the following: :values."
|
||||
exists: "The selected :attribute is invalid."
|
||||
file: "The :attribute must be a file."
|
||||
file_too_large: "The :attribute is too large."
|
||||
file_upload_failed: "The :attribute failed to upload."
|
||||
filled: "The :attribute field must have a value."
|
||||
gt:
|
||||
numeric: "The :attribute must be greater than :value."
|
||||
|
Reference in New Issue
Block a user