Values in the input array with numeric keys will be renumbered with incrementing keys starting from zero in the result array.
In FileUpload.php used UPLOADERR* integer constants as messages keys.
So if I set my own messages I got this:
Array
(
[0] => The uploaded file exceeds the upload_max_filesize directive in php.ini
[1] => The uploaded file exceeds the MAX_FILE_SIZE directive that was specified in the HTML form
[2] => The uploaded file was only partially uploaded
[3] => No file was uploaded
[4] => Missing a temporary folder
[5] => Failed to write file to disk
[6] => A PHP extension stopped the file upload
[7] => The upload file exceeds the post_max_size or the upload_max_filesize directives in php.ini
[8] => Размер файла превышает максимальный размер заданый в php.ini
[9] => Размер файла превышает максимальный размер переданный в форме
[10] => Файл был загружен не полностью
[11] => Файл не был загружен
[12] => Отсутствует временный каталог
[13] => Ошибка записи на диск
[14] => A PHP extension stopped the file upload
[15] => Размер файла превышает максимальный размер
)
From http://php.net/array_merge
In FileUpload.php used UPLOADERR* integer constants as messages keys. So if I set my own messages I got this: