Answers for "file is empty in php"

PHP
2

file is empty in php

## CHECKS IF FILE IS EMPTY
if ($_FILES['file']['size'] == 0 && $_FILES['file']['error'] == 0)
{
    // file is empty (and not an error)
}
Posted by: Guest on April-07-2022

Browse Popular Code Answers by Language