I have the following checks:
ПРОВЕРКА ISSET($_FILES['IMG']) ПРОВЕРКА НА КОЛИЧЕСТВО ЗАГРУЖАЕМЫХ ФАЙЛОВ ПРОВЕРКА ПО МАССИВУ ОШИБОК ПРОВЕРКА ВЕСА (КБ, МБ) ПРОВЕРКА ФОРМАТОВ ПРОВЕРКА РАЗМЕРОВ КАРТИНКИ (РАЗМЕР СТОРОН КАРТИНКИ) After that, I want to resize the file, and check the FORMAT file again. Do I need this check?
The names of the downloads are not checked - they are not needed. Types check ($ _FILES ['type']) - there is no point.
Why once again, after resizing, to check the format of the picture? But what if someone inserts an evil code there?
ALL graphics (except that used for design) on the site is saved WITHOUT extensions, above the site root. I repeat: Do I need to check the format of the image again, after resizing?
links:
upload strange browser behavior
Is the downloadable file in the temporary folder after the script ends?
Where does the server upload? (there is no file in the temporary folder). upload_tmp_dir