Gdn_Upload::isUpload PHP Method

isUpload() public method

Check to see whether the user has selected a file for uploading.
public isUpload ( $inputName ) : boolean
$inputName The input name of the file.
return boolean Whether a file has been selected for the fiels.
    public function isUpload($inputName)
    {
        return val('name', val($inputName, $_FILES, '')) !== '';
    }