You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When user is uploading a file, multer stores it on the disk. But if user aborts the upload, the "abort" event is caught but the file cannot be deleted until server is closed.
The text was updated successfully, but these errors were encountered:
@itsfuad
It's an old bug in multer - #259
In the conversation you can find a number of workarounds - basically you can listen to req 'aborted' event
But it still creates unclosed stream and stuck file handler
When user is uploading a file, multer stores it on the disk. But if user aborts the upload, the "abort" event is caught but the file cannot be deleted until server is closed.
The text was updated successfully, but these errors were encountered: