MultipartText-based
multipart/form-data
Form Data (Multipart)
Reference for multipart/form-data, the MIME type for HTML form submissions that include file uploads.
MIME Type Detector
Drop a file to detect its MIME type — no upload, runs in your browser
📄
Drop any file here or click to choose
HTTP Content-Type Header
HTTP Header
Content-Type: multipart/form-data; charset=utf-8Quick Facts
| MIME Type | multipart/form-data |
| Category | Multipart |
| Type | Text-based (human-readable) |
Common Usage
multipart/form-data is used when HTML forms include file uploads. Each form field is sent as a separate part with its own Content-Type.
This is the required encoding type for file upload forms and is used by fetch/XHR when sending FormData objects with binary content.
Code Examples
HTML
<!-- Set MIME type in meta or fetch headers -->
<meta http-equiv="Content-Type" content="multipart/form-data">Node.js
// Express.js
app.get('/file', (req, res) => {
res.type('multipart/form-data');
res.send(data);
});
// Node.js http
res.writeHead(200, { 'Content-Type': 'multipart/form-data' });nginx
# nginx.conf — add to types block or use default
types {
multipart/form-data data;
}
# Or set for a specific location
location /api/ {
default_type multipart/form-data;
}Related MIME Types
More Multipart MIME Types
Other multipart types in the Multipart family
Related Tools
Explore More MIME Types
Browse our complete reference of 185 MIME types with usage examples, HTTP headers, and code snippets.