-
Notifications
You must be signed in to change notification settings - Fork 261
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
bugs for limitHandler and Number of file you can upload #155
Comments
Invoking cleanup function in limit handler should help in case of
It can be added in to the processMultipart.js before lines 46, 50. |
And maybe add |
I didn't catch your update about ext. |
example:
I can upload multiple files with different mimetype in a form right, |
I see, but probably it should be a separate issue. Still thinking about how to resolve cleanup and limits issue. |
Hi @Truth1984 , I've published 1.1.6-alpha.1 version, where I've added cleanup function if upload was aborted because of file size limit. |
In 1.1.6-alpha.5 there is also new timeout check added for incoming data. |
Fixed:
|
So basically there are two bugs.
useTempFiles: true
I want to remove the file after I hit the limit, and i will use
However, in this case,
req.files == null
, thus the file will remain on your disk then if I keep spamming, it will take all the space of your disk and crush the server.2 I can't find anywhere to limit the amount of files of your uploads.
Thus, If I set
fileSize limit
to 100MB,Even though you can write the proper code to check if
truncated == true
, and delete the file, but it happened after the user finish uploading right,or use
abortOnLimit: true
then the tempfile will be kept on your server ...I can upload few big chunks of files with few different computers from different ips, take over your disk and crush your server ?
The text was updated successfully, but these errors were encountered: