Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

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)
}
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #php #check #post #file #empty
ADD COMMENT
Topic
Name
2+3 =