Rohde Fischer
08/02/2024, 6:26 PMpost("/templates") {
val readChannel = call.receiveChannel()
val text = readChannel.readRemaining().readText()
<http://log.info|log.info> { text }
}
I also get the boundaries from the multipart and metadata Content-Disposition and Content-Type. Is this really the desired behavior? It's most certainly not what I'd expect at least 😕Chrimaeon
08/02/2024, 7:55 PMcall.receiveMultipart()Rohde Fischer
08/03/2024, 4:51 PMAleksei Tirman [JB]
08/05/2024, 8:42 AMIs this really the desired behavior?Yes, because the
ByteReadChannel doesn't know anything about the request and the readText() method is called, which is designed to read the entire channel to a string.Rohde Fischer
08/05/2024, 11:08 AMChrimaeon
08/05/2024, 11:43 AM