The code for some reason does not correctly identify the typhoid file. I do a lot of downloading pictures, if the files are small (100-200 kb), everything works fine, but if the file size is larger (1-3 mb) problems begin ....
foreach ($_FILES['file']['name'] as $k=>$v) { ////// тут разный код //// ................ //////////// проверка типа/////// if($_FILES['file']['type'][$k] == "image/gif" || $_FILES['file']['type'][$k] == "image/png" || $_FILES['file']['type'][$k] == "image/jpg" || $_FILES['file']['type'][$k] == "image/jpeg") { ////////////загружаю изображение ................................. ////////////загружаю изображение }else echo "<center><br>Можно загружать только изображения в форматах jpg, jpeg, gif и png.</center>"; }
small pictures load with a bang, great .... loads only the first file, and then vivvidit that message that you can upload only images in jpg, jpeg, gif and png formats.
maybe who knows because of what there can be such glitches?
$_FILES['file']['type'][$k]
at each iteration and see what comes out. - xEdelweiss