I can’t seem to find any examples doing multipart ...
# javascript
l
I can’t seem to find any examples doing multipart form upload (for uploading images). has anyone accomplished doing javascript multipart upload using ktor?
t
I use standard
fetch
instead 😞
l
yes, I got that working as well, but since I have my entire networking code and authentication logic in ktor I’d like to use that instead.
in kotlin js I have a FileList that I somehow need to convert to a MultiPartData for ktor. but can’t seem to find a way
t
Please share the solution if you find it
l
👍 1
t
Did you check
PartData.FileItem
?
l
yes, but that also seems some kind of Input