aguidrevitch/jquery-file-upload-middleware — pull request #39 by rmichnik (2014-01-12 18:58:37+00:00)
Title: Add path option to return uploaded file path

Returning the file upload path, usage sample:

app.use('/api/upload', upload.fileHandler({
uploadDir: __dirname + '/../public/uploads/'+moment().format('YYYY[/]MM'),
uploadUrl: '/uploads/'+moment().format('YYYY[/]MM'),
path: __dirname + '/../public/uploads/'+moment().format('YYYY[/]MM')
}));