Skip to main content

Submit multipart form data

Put formData on the first request argument. For one Storage-backed binary part, leave that part’s value empty and provide source in options.
Reference each Storage entry directly when the request contains several files:
The runtime creates the MIME boundary. Do not set a manual multipart Content-Type header without the matching generated boundary. Continue with http.
Last modified on November 8, 2026