|  | @@ -105,8 +105,14 @@ class BridgeFilter(private val template: SimpMessagingTemplate, val resourceLoad
 | 
	
		
			
				|  |  |                      if (req.contentType != null && req.contentType.toLowerCase().indexOf("multipart/form-data") > -1) {
 | 
	
		
			
				|  |  |                          rb.parts =
 | 
	
		
			
				|  |  |                              req.parts.map {
 | 
	
		
			
				|  |  | +                                val subFilename = if (it.submittedFileName == null) {
 | 
	
		
			
				|  |  | +                                    UUID.randomUUID().toString().take(5)
 | 
	
		
			
				|  |  | +                                } else {
 | 
	
		
			
				|  |  | +                                    it.submittedFileName
 | 
	
		
			
				|  |  | +                                }
 | 
	
		
			
				|  |  | +
 | 
	
		
			
				|  |  |                                  val fb64 = Base64.getEncoder().encodeToString(it.inputStream.readBytes())
 | 
	
		
			
				|  |  | -                                FilePart(it.name, it.submittedFileName, fb64)
 | 
	
		
			
				|  |  | +                                FilePart(it.name, subFilename, fb64)
 | 
	
		
			
				|  |  |                              }.toMutableList()
 | 
	
		
			
				|  |  |                      } else {
 | 
	
		
			
				|  |  |                          val body = req.reader.lines().toList().joinToString(System.lineSeparator())
 |