Closed gabrielcursino closed 1 year ago
body += chunk.toString();
Images are binary data, you are taking chunks of binary and converting to utf-8 string which cannot represent binary data, then you give bad string to getParts function
Thanks for the clarification @e3dio!
It is working fine now!
I have these code below:
they, works fine for application/json and application/x-www-form-urlencoded, but for multipart/form-data the result seems wrong
For example, for multipart/form-data i have this output:
Content-Length and body length are different, and when i try to upload the file array buffer, i get a corrupted test.png file
Am i doing something wrong?
For more detailed code see @ionited/fiber