expressjs / expressjs/multer

5.x.x - Human readable size limits

Open
#851 0 comments 0 reactions 0 assignees View on GitHub
enhancement
Dominant language
JavaScript
Stars
12.1k
Forks
1.1k
Avg merge
8d 2h
Merged PRs (30d)
21

Description

Based on conversations in https://github.com/expressjs/multer/pull/848, we can change the limits to accept either a `Number` of bytes, or a human readable string like `100MB`.

We can use the [`bytes`](https://www.npmjs.com/package/bytes) module to achieve the conversion.

The docs and tests will need to be updated accordingly, to make sure users understand not only the change but the default behavior of using a Number of bytes.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.