prevent deprecation when filesize matches error code
This commit is contained in:
parent
1620baf1b5
commit
d836c63b91
@ -84,7 +84,7 @@ class FileBag extends ParameterBag
|
||||
if (UPLOAD_ERR_NO_FILE == $file['error']) {
|
||||
$file = null;
|
||||
} else {
|
||||
$file = new UploadedFile($file['tmp_name'], $file['name'], $file['type'], $file['error']);
|
||||
$file = new UploadedFile($file['tmp_name'], $file['name'], $file['type'], $file['error'], false);
|
||||
}
|
||||
} else {
|
||||
$file = array_map([$this, 'convertFileInformation'], $file);
|
||||
|
Reference in New Issue
Block a user