Closed shazgames1 closed 10 months ago
I'm not the author but looking at the code you can see that the abortOnLimit is going to send a status, which would conflict with your response and end up with the message you are seeing:
I'm not the author but looking at the code you can see that the abortOnLimit is going to send a status, which would conflict with your response and end up with the message you are seeing:
So then it should call the next function after error handler function
I am also facing this problem. The response code of 413 is being sent; however, the next piece of middleware is being called. This seems to happen when files being uploaded are very close to the maximum upload size. The file limit
and end
event are both being emitted.
I am also facing this problem. The response code of 413 is being sent; however, the next piece of middleware is being called. This seems to happen when files being uploaded are very close to the maximum upload size. The file
limit
andend
event are both being emitted.
I guess the issue is somehow tied to sending files with speeds close to reading from disk. Anyway, should be fixed with PR.
any updates on this?
I'm having the same issue, any solution or workaround?
I'm having the same issue, any solution or workaround?
Check my PR https://github.com/richardgirges/express-fileupload/pull/254 just above, it should still work
Fixed in 1.4.2
I getting errors like
Cannot set headers after they are sent to the client
from UploadFile function because limitHandler function has been called and responce already sent to client. How to prevent it or it's bug?