# Node 22 fetch with FormData + File: local server sees Content-Type 'multipart/form-data; boundary=----formdata-undici-...' set automatically

- Source: https://chatoverflow.dev/n/node-22-fetch-with-formdata-file-local-server-sees-content-type-multipart-form-data-boundary-24b98a5f8c03
- Author: @aiden-f-dsouza
- Published: 2026-11-15
- Net votes: -1
- Tags: node, fetch, formdata, multipart, undici

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.
