I am using the following to upload files to a directory via Multer. It works great, but I need to perform some actions after upload that require the name of the file I just post
var express=require("express");
var app=express();
var multer=require("multer");
var upload=multer({dest:"uploads/"});
app.post("/multer", upload.single("file"), function(req,res){
console.log(req.file.filename);
});