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

File delete issue #1217

Open
itsfuad opened this issue Jun 15, 2023 · 2 comments
Open

File delete issue #1217

itsfuad opened this issue Jun 15, 2023 · 2 comments

Comments

@itsfuad
Copy link

itsfuad commented Jun 15, 2023

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.

@FurqanAnwar
Copy link

@itsfuad Can you elaborate this issue. How does user aborts the upload by manually cancling the process?

@Doc999tor
Copy link

@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

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