| 
					
				 | 
			
			
				@@ -85,14 +85,18 @@ class BridgeFilter(private val template: SimpMessagingTemplate, val resourceLoad 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                     if (req.contentType?.toLowerCase()?.contains("multipart/form-data") == true) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                         rb.parts = 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                             req.parts.map { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                                val subFilename = if (it.submittedFileName == null) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                                    UUID.randomUUID().toString().take(5) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                                if (it.contentType == null) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                                    FilePart(it.name, "isNotFile", String(it.inputStream.readBytes())) //it 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                                 } else { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                                    it.submittedFileName 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                                    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, subFilename, fb64) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                                 } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				- 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                                val fb64 = Base64.getEncoder().encodeToString(it.inputStream.readBytes()) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                                FilePart(it.name, subFilename, fb64) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                             }.toMutableList() 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                     } else { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                         val body = req.reader.lines().toList().joinToString(System.lineSeparator()) 
			 |