public function validateFile(File $file, $sourceFilePath = null)
	{
		$result = $this->checkList($file->getExtension());
		
		if( ! $result) {
			$message = 'File extension "'.$file->getExtension().'" is not allowed';
			
			throw new Exception\UploadFilterException(self::EXCEPTION_MESSAGE_KEY, $message);
		}
	}
public function validateFile(File $file, $sourceFilePath = null)
	{
		$result = $this->checkList($file->getExtension());
		
		if( ! $result) {
			$message = 'File extension "'.$file->getExtension().'" is not allowed';
			
			throw new Exception\UploadFilterException(self::EXCEPTION_MESSAGE_KEY, $message);
		}
	}
public function validateFile ( File $ file , $ sourceFilePath = null ) { $ result = $ this -> checkList ( $ file -> getExtension ( ) ) ; if ( ! $ result ) { $ message = 'File extension "' . $ file -> getExtension ( ) . '" is not allowed' ; throw new Exception \ UploadFilterException ( self :: EXCEPTION_MESSAGE_KEY , $ message ) ; } }
Validates file extension
@param File $file
Validates file extension