public function getErrorString(): string
	{
		$errors = [
			UPLOAD_ERR_OK         => lang('HTTP.uploadErrOk'),
			UPLOAD_ERR_INI_SIZE   => lang('HTTP.uploadErrIniSize'),
			UPLOAD_ERR_FORM_SIZE  => lang('HTTP.uploadErrFormSize'),
			UPLOAD_ERR_PARTIAL    => lang('HTTP.uploadErrPartial'),
			UPLOAD_ERR_NO_FILE    => lang('HTTP.uploadErrNoFile'),
			UPLOAD_ERR_CANT_WRITE => lang('HTTP.uploadErrCantWrite'),
			UPLOAD_ERR_NO_TMP_DIR => lang('HTTP.uploadErrNoTmpDir'),
			UPLOAD_ERR_EXTENSION  => lang('HTTP.uploadErrExtension'),
		];

		$error = is_null($this->error) ? UPLOAD_ERR_OK : $this->error;

		return sprintf($errors[$error] ?? lang('HTTP.uploadErrUnknown'), $this->getName());
	}
public function getErrorString(): string
	{
		$errors = [
			UPLOAD_ERR_OK         => lang('HTTP.uploadErrOk'),
			UPLOAD_ERR_INI_SIZE   => lang('HTTP.uploadErrIniSize'),
			UPLOAD_ERR_FORM_SIZE  => lang('HTTP.uploadErrFormSize'),
			UPLOAD_ERR_PARTIAL    => lang('HTTP.uploadErrPartial'),
			UPLOAD_ERR_NO_FILE    => lang('HTTP.uploadErrNoFile'),
			UPLOAD_ERR_CANT_WRITE => lang('HTTP.uploadErrCantWrite'),
			UPLOAD_ERR_NO_TMP_DIR => lang('HTTP.uploadErrNoTmpDir'),
			UPLOAD_ERR_EXTENSION  => lang('HTTP.uploadErrExtension'),
		];

		$error = is_null($this->error) ? UPLOAD_ERR_OK : $this->error;

		return sprintf($errors[$error] ?? lang('HTTP.uploadErrUnknown'), $this->getName());
	}
public function getErrorString ( ) : string { $ errors = [ UPLOAD_ERR_OK => lang ( 'HTTP.uploadErrOk' ) , UPLOAD_ERR_INI_SIZE => lang ( 'HTTP.uploadErrIniSize' ) , UPLOAD_ERR_FORM_SIZE => lang ( 'HTTP.uploadErrFormSize' ) , UPLOAD_ERR_PARTIAL => lang ( 'HTTP.uploadErrPartial' ) , UPLOAD_ERR_NO_FILE => lang ( 'HTTP.uploadErrNoFile' ) , UPLOAD_ERR_CANT_WRITE => lang ( 'HTTP.uploadErrCantWrite' ) , UPLOAD_ERR_NO_TMP_DIR => lang ( 'HTTP.uploadErrNoTmpDir' ) , UPLOAD_ERR_EXTENSION => lang ( 'HTTP.uploadErrExtension' ) , ] ; $ error = is_null ( $ this -> error ) ? UPLOAD_ERR_OK : $ this -> error ; return sprintf ( $ errors [ $ error ] ?? lang ( 'HTTP.uploadErrUnknown' ) , $ this -> getName ( ) ) ; }
Get error string

@return string
Get error string