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

Test _removeFile function in multer's custom storage engine #1293

Open
AkshayKrJha opened this issue Jan 12, 2025 · 0 comments
Open

Test _removeFile function in multer's custom storage engine #1293

AkshayKrJha opened this issue Jan 12, 2025 · 0 comments
Labels

Comments

@AkshayKrJha
Copy link

I went through the docs here: https://github.com/expressjs/multer/blob/master/StorageEngine.md
Here the logic of _handleFile is clear, but there's doubt about _removeFile function, like

  • How will it get new parameters from file?
  • If we save uploaded file name during _handleFile function, would it be possible to retrieve that in _removeFile?
  • How to make _removeFile invoked and test all these using a console log there ?
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant