Introducing a new way to review your PRs.

Read the announcement

node-formidable / formidable

The most used, flexible, fast and streaming parser for multipart form data. Supports uploading to serverless environments, AWS S3, Azure, GCP or the filesystem. Used in production.

View on GitHub

13 documents · Updated Nov 9, 2026

overview

Knowledge Base updated: 2026-11-08

Formidable knowledge base

Formidable is a Node.js library for parsing incoming HTTP form requests, including multipart uploads and structured request bodies.

Its core flow centers on IncomingForm: request configuration, content-type plugin selection, streaming parsing, field/file collection, and lifecycle events.

Upload state is held by form instances and file representations; persistent files manage filesystem-backed writes while volatile files retain non-persistent upload data.

flowchart LR
  App[Application / HTTP server] --> Form[IncomingForm]
  Form --> Plugins[Content-type plugins]
  Plugins --> Multipart[Multipart parser]
  Plugins --> JSON[JSON parser]
  Plugins --> Query[Querystring parser]
  Plugins --> Octet[Octet-stream handler]
  Multipart --> Fields[Fields]
  Multipart --> Files[File lifecycle]
  JSON --> Fields
  Query --> Fields
  Octet --> Files
  Files --> Persistent[PersistentFile]
  Files --> Volatile[VolatileFile]
  Persistent --> Disk[Filesystem / custom stream]
  Form --> Events[Lifecycle events and errors]

Glossary

  • IncomingForm — the primary form parser instance and event emitter.
  • Plugin — a content-type-specific handler attached to an IncomingForm instance.
  • PersistentFile — an uploaded file backed by a write stream and filesystem path.
  • VolatileFile — a non-persistent uploaded-file representation.
  • Part — a parsed multipart section representing a field or file upload.

Invariants

Routing table