if($_FILES['cover_image']['size'] == 0) {
// No file was selected for upload, your (re)action goes here
}
if(filesize("path/to/file") == 0){
print "File is empty";
}
## CHECKS IF FILE IS EMPTY
if ($_FILES['file']['size'] == 0 && $_FILES['file']['error'] == 0)
{
// file is empty (and not an error)
}