library/QATools/QATools/HtmlElements/Element/FileInput.php
public function setFileToUpload($filename)
	{
		if ( !file_exists($filename) ) {
			throw new FileInputException(
				'File "' . $filename . '" doesn\'t exist',
				FileInputException::TYPE_FILE_NOT_FOUND
			);
		}

		$this->getWrappedElement()->attachFile($filename);

		return $this;
	}
public function setFileToUpload($filename)
	{
		if ( !file_exists($filename) ) {
			throw new FileInputException(
				'File "' . $filename . '" doesn\'t exist',
				FileInputException::TYPE_FILE_NOT_FOUND
			);
		}

		$this->getWrappedElement()->attachFile($filename);

		return $this;
	}
public function setFileToUpload ( $ filename ) { if ( ! file_exists ( $ filename ) ) { throw new FileInputException ( 'File "' . $ filename . '" doesn\'t exist' , FileInputException :: TYPE_FILE_NOT_FOUND ) ; } $ this -> getWrappedElement ( ) -> attachFile ( $ filename ) ; return $ this ; }
Sets a file to be uploaded.

@param string $filename Filename.

@return self
@throws FileInputException When file could not be found on disk.
Sets a file to be uploaded .