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