concrete/src/Form/Service/Validation.php
public function addUploadedFile($field, $errorMsg = null, $emptyIsOk = true)
    {
        $const = ($emptyIsOk) ? self::VALID_UPLOADED_FILE : self::VALID_UPLOADED_FILE_REQUIRED;
        $this->addRequired($field, $errorMsg, $const);
    }
public function addUploadedFile($field, $errorMsg = null, $emptyIsOk = true)
    {
        $const = ($emptyIsOk) ? self::VALID_UPLOADED_FILE : self::VALID_UPLOADED_FILE_REQUIRED;
        $this->addRequired($field, $errorMsg, $const);
    }
public function addUploadedFile ( $ field , $ errorMsg = null , $ emptyIsOk = true ) { $ const = ( $ emptyIsOk ) ? self :: VALID_UPLOADED_FILE : self :: VALID_UPLOADED_FILE_REQUIRED ; $ this -> addRequired ( $ field , $ errorMsg , $ const ) ; }
Adds a test to a field to ensure that, if set, it is a valid uploaded file.

@param string $field
@param string $errorMsg
@param bool   $emptyIsOk Tells whether this can be submitted as empty (e.g. the validation tests only run if someone is actually submitted in the post.)
Adds a test to a field to ensure that if set it is a valid uploaded file .