You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
The text was updated successfully, but these errors were encountered:
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.The text was updated successfully, but these errors were encountered: