Skip to content

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

@AkshayKrJha

Description

@AkshayKrJha

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 ?

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions