Hello,
I'm having an issue with ktor 3-rc-1 and multipart.
Reading bytes on FileItem work as expected when using ktor-client to upload a 20Mo file to the server.
But with Web client or Postman or Curl, the same file take 40min to be read.
If i used ktor 2 and streamProvider for reading the file, it's working with all client.
I've miss something, or it could be a bug in ktor 3 ?
What i've been seeing it's readRemaining read with very small chunck with a postman call compared to a ktor client call
Edouard Ouvrard
09/18/2024, 3:18 PM
also with ktor client, i've a Content-Lenght header in the FileItem part, but not with postman
b
Bruce Hamilton
09/18/2024, 3:32 PM
Ok, could you provide some more details on what the expected behaviour is and what is observed, ideally with a minimal example and file a bug report in youtrack https://youtrack.jetbrains.com/newIssue?project=ktor