app.post(APIpath + "file",function(req,res){
var storage = multer.diskStorage({
destination: function (req, file, cb) {
cb(null, absoluteServePath+ "/" + config.filePath)
},
filename: function (req, file, cb) {
crypto.pseudoRandomBytes(16, function (err, raw) {
cb(null, raw.toString('hex') + Date.now() + '.' + mime.lookup(file.mimetype));
});
}
});
var upload = multer({ storage : storage}).single('userFile');