aguidrevitch / jquery-file-upload-middleware

jQuery-File-Upload Express.js middleware
294 stars 120 forks source link

Dynamic Dir does not work #38

Open rmichnik opened 10 years ago

rmichnik commented 10 years ago

I'm trying to use dynamic dir but not working when i put my upload configuration after

app.use(passport.initialize());
app.use(passport.session());

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.