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

Block incoming files #248

Closed
lexblagus opened this issue Jul 30, 2013 · 2 comments
Closed

Block incoming files #248

lexblagus opened this issue Jul 30, 2013 · 2 comments

Comments

@lexblagus
Copy link

I hope not doing a too-newbie question. Is it possible to use this module to BLOCK/DENY incoming http requests of (large) files BEFORE the upload itself (if this is possible per http protocol), for performance and security reasons?

thanks in advance

@OrangeDog
Copy link
Contributor

Call request.connection.destroy() or similar once you've determined you don't want it.
But you don't need this module to do that, and usage questions should go on mailing lists / IRC, not here.

@xarguments
Copy link
Collaborator

Was implemented. See maxFileSize option: https://github.com/felixge/node-formidable#api
For cancellation/abortion, this will be #471.

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