payload icon indicating copy to clipboard operation
payload copied to clipboard

Express-fileupload options

Open EKMN opened this issue 5 years ago • 3 comments

Documentation Issue

The default upload behaviour is to load everything to memory. This is not really feasible when dealing with large files.

Further, the docs are confusing. It is implied that all valid express-fileupload options (like useTempFiles) are supported, however adding anything but upload.limits.fileSize throws an error due to validation failure.

If this limited behaviour is intended, then the docs should probably reflect that.

Additional Details

none

EKMN avatar May 13 '21 02:05 EKMN

Thank you for the report @EKMN! We'll look into either supporting all options or a subset, then updating the docs accordingly.

denolfe avatar May 13 '21 02:05 denolfe

Hey @EKMN —

Good call here. Just some bad schema validation. All express-fileupload options are available for your use and are now validated / typed accordingly.

Give the new version a shot and thank you!

jmikrut avatar May 16 '21 17:05 jmikrut

This issue has been automatically locked. Please open a new issue if this issue persists with any additional detail.

github-actions[bot] avatar Sep 08 '24 08:09 github-actions[bot]