Created
April 10, 2017 13:16
-
-
Save koras/9d010c7ce06232d1d81bee6f7c9e724b to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[ | |
[ | |
'value' => strlen($inData['name']), | |
'etalon' => 64, | |
'code_error' => 1, | |
'mode' => "<=", | |
'error_text' => "Длина имени файла более 32 символов", | |
], | |
[ | |
'value' => $sizeMB, | |
'etalon' => 50, | |
'code_error' => 2, | |
'mode' => "<=", | |
'error_text' => "Размер файла более допустимого 5Mb", | |
], | |
[ | |
'value' => mb_strtolower($ext), | |
'etalon' => array_flip(array_keys(self::$types)), | |
'code_error' => 3, | |
'tp'=>self::$types, | |
'mode' => 'in', | |
'error_text' => "Файл не входит в разрешенные типы", | |
], | |
[ | |
'value' => $inData['error'], | |
'etalon' => 0, | |
'code_error' => 4, | |
'mode' => '==', | |
'error_text' => "Ошибки при загрузке файла", | |
], |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment