Question : check if $_files is empty php
Answered by : delightful-dove-erl398c4qeeo
if($_FILES['cover_image']['size'] == 0) {
// No file was selected for upload, your (re)action goes here
}
Source : https://stackoverflow.com/questions/14458553/check-if-specific-input-file-is-empty | Last Update : Mon, 01 Nov 21
Question : check if file empty php
Answered by : lehlogonolo-lebogo
if(filesize("path/to/file") == 0){ print "File is empty"; }
Source : https://stackoverflow.com/a/4857194 | Last Update : Fri, 26 Aug 22
Question : CHECKING IF FILE IS EMPTY IN PHP
Answered by : melnar-ancit
## CHECKS IF FILE IS EMPTY
if ($_FILES['file']['size'] == 0 && $_FILES['file']['error'] == 0)
{ // file is empty (and not an error)
}
Source : | Last Update : Thu, 14 Apr 22