protected isUploaded ( string $file ) : boolean | ||
$file | string | File index in the $_FILES array |
return | boolean |
protected function isUploaded(string $file) : bool
{
// Ugly ugly eeeew yuk hack, that is unfortunately needed sometimes
if (defined('IS_TEST') && IS_TEST) {
return true;
} else {
return is_uploaded_file($file);
}
}