file_file_validate($file)Implementation of the hook_file_validate().
contributions/fileframework/file.module, line 708
<?php
function file_file_validate($file) {
$errors = array();
if ($file->filesize == 0) {
$errors[] = t('The file is empty.');
}
return $errors;
}
?>