-
-
Notifications
You must be signed in to change notification settings - Fork 151
Closed
Description
If the size of an uploaded file exceeds PHP's upload_max_filesize then the form field reports just a generic error not mentioning size at all. I suggest two improvements:
- If the size set in
Form::MAX_FILE_SIZEexceedsupload_max_filesizethen throw an exception. - If the file upload fails with
UPLOAD_ERR_INI_SIZE, report the same error as when exceedingForm::MAX_FILE_SIZE.
There are already some checks for post_max_size in the code, maybe something similar could be done for upload_max_filesize.
jelen07, hrach, peldax and universe-42
Metadata
Metadata
Assignees
Labels
No labels