protected function validateMimeType () : bool
	{
		if (!is_array($this->allowedMimeTypes) || empty($this->allowedMimeTypes))
			return TRUE;
		if (!in_array($this->mimeType, $this->allowedMimeTypes)):
			$this->error = "Unsupported file type.";
			return FALSE;
		endif;
		return TRUE;
	}
protected function validateMimeType () : bool
	{
		if (!is_array($this->allowedMimeTypes) || empty($this->allowedMimeTypes))
			return TRUE;
		if (!in_array($this->mimeType, $this->allowedMimeTypes)):
			$this->error = "Unsupported file type.";
			return FALSE;
		endif;
		return TRUE;
	}
protected function validateMimeType ( ) : bool { if ( ! is_array ( $ this -> allowedMimeTypes ) || empty ( $ this -> allowedMimeTypes ) ) return TRUE ; if ( ! in_array ( $ this -> mimeType , $ this -> allowedMimeTypes ) ) : $ this -> error = "Unsupported file type." ; return FALSE ; endif ; return TRUE ; }
Validates file mime type.
@return bool
Validates file mime type .