Answers for "php check if file upload is empty"

PHP
0

php check if post file is empty

if ($_FILES['cover_image']['size'] == 0 && $_FILES['cover_image']['error'] == 0)
{
    // cover_image is empty (and not an error)
}
Posted by: Guest on May-14-2020

Code answers related to "php check if file upload is empty"

Browse Popular Code Answers by Language