formidable
Streaming multipart form parser for Node.js with low memory footprint, file upload handling, and event-based API.
Official Documentation ↗v3.5. Check the official docs for the latest API surface.Installation
npm install formidableMethods
No methods match this filter.
formidable is streaming multipart form parser for node.js with low memory footprint, file upload handling, and event-based api. This page documents the core methods, installation, and common usage patterns for the current stable release.
Installation
Install formidable with your preferred package manager using the command shown in the frontmatter. The package is published to the npm registry and ships with TypeScript types where applicable.
Core methods
The methods listed in the frontmatter cover the primary API surface. Each signature reflects the v3.5 release. Consult the official documentation linked in sourceUrl for advanced options, edge cases, and breaking changes between major versions.
Frequently asked questions
The faq section in the frontmatter answers the most common questions about formidable, including comparisons with alternatives, configuration tips, and runtime requirements. If your question is not covered, check the source URL for the full guide.
Errors
The following points are quoted verbatim from the official documentation. 来源:https://cdn.jsdelivr.net/gh/node-formidable/formidable@latest/README.md · 取证方式:HTTP GET 官方 README/文档页(HTML 去标签) · 抓取时间:2026-11-07T13:49:44.329Z. Any error type, throw condition or recovery step not stated there is left unspecified; this page does not infer exception classes or return values.
- A request that experiences an error is automatically paused, you will have to manually call request.resume() if you want the request to continue firing ‘data’ events. (https://cdn.jsdelivr.net/gh/node-formidable/formidable@latest/README.md)
FAQ
- Does it write files to disk?
- By default yes; set keepExtensions and uploadDir, or use fileBegin to handle streams.
- How does it limit file size?
- Set maxFileSize; parsing aborts with a 413-style error when exceeded.
- Is it Express-compatible?
- Yes. Use it as middleware or call form.parse(req) inside a route handler.
Report a problem with this API docOpens a pre-filled issue on GitHub.