Hello :slightly_smiling_face: is there any way to ...
# ktor
o
Hello 🙂 is there any way to upload multipart forms with large files from js? As I understand, by default in JS is used
window.fetch
, but I didn't found any way in ktor to upload files as streams
a
Unfortunately, this isn't feasible right now because the only supported primitive for streaming is
Input
and it's synchronous, which makes it impossible to implement in the browser environment.
o
Ok, I see. Thanks
a
In theory, this could be done in the Web Workers environment.
o
Is there some hope that Ktor clients will achieve some additional method for JS with files? As I understand, it is possible to make stream-like upload via fetch api