Closed buffpojken closed 3 years ago
Hey, sorry that no one ever took a look at your PR 😢
I think that this is better solved by upgrading to the release candidate of Multer 3.x. That version uses a different model where this will be available automatically.
The reason I don't want to just merge this now is that as it is it's an undocumented property, and I'm not sure that the name is the best since it's not always a "detected" mime type, since the user can supply any callback...
Well, I'm no longer even remotely connected to the project this was related to, so no worries I guess :)
I found myself not wanting to rely on reported mime for calculating buckets and meta-data, but instead using the proper mime as determined by the magic number. Since that's already done anyway, switching the order of the independent ops makes it doable.