private function checkFileTypeIsAllowed()
	{
		if(count($this->allowedMimeTypes) > 0)
		{
			if(! in_array($this->file->getMimeType(), $this->allowedMimeTypes))
			{
				throw new InvalidFileTypeException("Invalid File Type: " . $this->file->getMimeType() . " has not been allowed");
			}
		}
	}
private function checkFileTypeIsAllowed()
	{
		if(count($this->allowedMimeTypes) > 0)
		{
			if(! in_array($this->file->getMimeType(), $this->allowedMimeTypes))
			{
				throw new InvalidFileTypeException("Invalid File Type: " . $this->file->getMimeType() . " has not been allowed");
			}
		}
	}
private function checkFileTypeIsAllowed ( ) { if ( count ( $ this -> allowedMimeTypes ) > 0 ) { if ( ! in_array ( $ this -> file -> getMimeType ( ) , $ this -> allowedMimeTypes ) ) { throw new InvalidFileTypeException ( "Invalid File Type: " . $ this -> file -> getMimeType ( ) . " has not been allowed" ) ; } } }
Checks that the file type is allowed, if none specified then all non-blocked file types will be accepted
@throws InvalidFileTypeException
Checks that the file type is allowed if none specified then all non - blocked file types will be accepted