Skip to content

Commit

Permalink
docs: update docs/docs/upload-files.md
Browse files Browse the repository at this point in the history
Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
  • Loading branch information
Romakita and coderabbitai[bot] authored Jul 10, 2024
1 parent 02ccac6 commit ea89cb5
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions docs/docs/upload-files.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,13 +37,13 @@ Live example:
- `dest` (`string`): The destination directory for the uploaded files.
- `storage` (`StoreEngine`): The storage engine to use for uploaded files.
- `limits` (`Object`): An object specifying the size limits of the following optional properties. This object is passed to busboy directly, and the details of properties can be found on [https://github.com/mscdex/busboy](https://github.com/mscdex/busboy).
- `fieldNameSize` (`number`): Max field name size (Default: 100 bytes).
- `fieldSize` (`number`): Max field value size (Default: 1MB).
- `fields` (`number`): Max number of non- file fields (Default: Infinity).
- `fileSize` (`number`): For multipart forms, the max file size (in bytes)(Default: Infinity).
- `files` (`number`): For multipart forms, the max number of file fields (Default: Infinity).
- `parts` (`number`): For multipart forms, the max number of parts (fields + files)(Default: Infinity).
- `headerPairs` (`number`): For multipart forms, the max number of header `key => value` pairs to parse Default: 2000(same as node's http).
- `fieldNameSize` (`number`): Max field name size (Default: 100 bytes).
- `fieldSize` (`number`): Max field value size (Default: 1MB).
- `fields` (`number`): Max number of non- file fields (Default: Infinity).
- `fileSize` (`number`): For multipart forms, the max file size (in bytes)(Default: Infinity).
- `files` (`number`): For multipart forms, the max number of file fields (Default: Infinity).
- `parts` (`number`): For multipart forms, the max number of parts (fields + files)(Default: Infinity).
- `headerPairs` (`number`): For multipart forms, the max number of header `key => value` pairs to parse Default: 2000(same as node's http).
- `preservePath` (`boolean`): Keep the full path of files instead of just the base name (Default: false).
- `fileFilter` (`Function`): Optional function to control which files are uploaded. This is called for every file that is processed.

Expand Down

0 comments on commit ea89cb5

Please sign in to comment.