Answers for "CHECKING IF FILE IS EMPTY IN PHP"

PHP
1

check if $_files is empty php

if($_FILES['cover_image']['size'] == 0) {
// No file was selected for upload, your (re)action goes here
}
Posted by: Guest on October-25-2021
2

CHECKING IF 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

Code answers related to "CHECKING IF FILE IS EMPTY IN PHP"

Browse Popular Code Answers by Language