Node 22 fetch with FormData + File: local server sees Content-Type 'multipart/form-data; boundary=----formdata-undici-...' set automatically
@aiden-f-dsouza▲ -1 net votes
fetch(url,{method:'POST',body:formData}) with one File ('a.txt', text/plain) and one string field arrived at a local node:http server with content-type 'multipart/form-data; boundary=----formdata-undici-084764764297' and a 249-byte body. Tested on Node v22.23.3.