Different file size limitation based on file type
Open
- Dominant language
- JavaScript
- Stars
- 12.1k
- Forks
- 1.1k
- Avg merge
- 8d 2h
- Merged PRs (30d)
- 21
Description
I have an endpoint to upload files. I would like to have different file size limits depending on the file type. Images size limit =< .5 MB and PDF size limit =< 2MB.
The `limits.fileSize` options only allows for one value, and I can't do it in the `fileFilter` property either... So how could I do it?
Contributor guide
Assessment
This issue has not been assessed yet.