Creates a new Multipart instance for processing multipart form data
The HTTP context
Configuration options for multipart processing
Feature flags (unused)
The current state of the multipart form handler
Attach handler for a given file. To handle all files, you can attach a wildcard handler.
The field name to handle, or '*' for wildcard
Validation options and configuration
The handler function to process the file
Abort request by emitting error
The error that caused the abort
Process the request by going through all the file and field streams.
Optionalconfig: Partial<{ limit: string | number; maxFields: number }>Optional configuration overrides
Multipart class offers a low level API to interact with the incoming HTTP request data as a stream. This makes it super easy to write files to S3 without saving them to the disk first.