I need to put after this because i want to use the req.user._id and this info come from my passport and it's only available before passport.initialize() and passport.session()
When i put my upload config before app.use(passport.initialize());, without dynamic dir, all runs as expected.
I'm trying to use dynamic dir but not working when i put my upload configuration after
I need to put after this because i want to use the
req.user._id
and this info come from my passport and it's only available beforepassport.initialize()
andpassport.session()
When i put my upload config before
app.use(passport.initialize());
, without dynamic dir, all runs as expected.