code: @Override
  	public void processMessage(final WebSocketMessage webSocketData) {
  
  		setDoTransactionNotifications(true);
  
  		final SecurityContext securityContext = getWebSocket().getSecurityContext();
  
  		try {
  
  			final String name      = webSocketData.getNodeDataStringValue("name");
  			final String rawData   = webSocketData.getNodeDataStringValue("fileData");
  
  			final File newFile = FileHelper.createFileBase64(securityContext, rawData, null);
  
  			newFile.setProperties(securityContext, new PropertyMap(AbstractNode.name, name));
  
  		} catch (Throwable t) {
  
  			String msg = t.toString();
  
  			// return error message
  			getWebSocket().send(MessageBuilder.status().code(400).message("Could not upload file: ".concat((msg != null) ? msg : "")).build(), true);
  
  		}
  	}
docs: ~--- methods --------------------------------------------------------