Jyxo\Input\Validator\Upload::isUploaded PHP Метод

isUploaded() защищенный Метод

Checks if the file was uploaded.
protected isUploaded ( string $file ) : boolean
$file string File index in the $_FILES array
Результат 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);
        }
    }