Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Is there a way to limit uploaded file size? #66

Closed
zdila opened this issue Sep 18, 2017 · 2 comments
Closed

Is there a way to limit uploaded file size? #66

zdila opened this issue Sep 18, 2017 · 2 comments

Comments

@zdila
Copy link

zdila commented Sep 18, 2017

node-formidable/formidable#324

@dlau
Copy link
Member

dlau commented Sep 25, 2017

Looks like there is an undocumented max file size option you can pass into formidable

https://github.com/felixge/node-formidable/blob/05e4743078f0a10cc556ec7351a629643e2b95b9/lib/incoming_form.js#L28

Use the options.formidable object to pass this
https://github.com/dlau/koa-body#options

@dlau dlau closed this as completed Sep 25, 2017
@cirias
Copy link

cirias commented Mar 10, 2018

But the maxFileSize is not in the index.d.ts of koa-body

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants