file-upload
file-upload middleware for nanoexpress
You can use express.js
file-upload
middleware instead of this middleware
Installation
npm i @nanoexpress/middleware-file-upload
# or
yarn add @nanoexpress/middleware-file-upload
Example
See the examples directory
Usage
ESM Module
import fileUpload from '@nanoexpress/middleware-file-upload';
app.use(fileUpload());
CJS Module
const fileUpload = require('@nanoexpress/middleware-file-upload/cjs');
app.use(fileUpload());
Options
Options name | Default | Required | Description |
---|---|---|---|
options.limit |
256 Mb | Yes | Limit of total uploading files or data |
License
MIT