Open itsfuad opened 1 year ago
@itsfuad Can you elaborate this issue. How does user aborts the upload by manually cancling the process?
@itsfuad It's an old bug in multer - https://github.com/expressjs/multer/issues/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.