| 
					
				 | 
			
			
				@@ -86,14 +86,18 @@ class BridgeFilter(private val template: SimpMessagingTemplate, val resourceLoad 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                         rb.parts = 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                             req.parts.map { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                                 it.contentType?.let { con -> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                                    val subFilename = if (it.submittedFileName == null) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                                        UUID.randomUUID().toString().take(5) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                                    } else { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                                        it.submittedFileName 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                                    if (con.contains("text/plain;")) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                                        FilePart(it.name, "isNotFile", String(it.inputStream.readBytes())) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                                    else { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                                        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) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                                 } ?: FilePart(it.name, "isNotFile", String(it.inputStream.readBytes())) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                             }.toMutableList() 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                     } else { 
			 |