Change filepath to sermon storage
parent
3991c14fef
commit
e062d15c15
|
|
@ -62,7 +62,7 @@ router.use(upload.single('file'),function(req,res,next){
|
||||||
if (req.file){
|
if (req.file){
|
||||||
req.body.file = req.file.originalname;
|
req.body.file = req.file.originalname;
|
||||||
req.body.finalPath = finalStorage + req.file.filename;
|
req.body.finalPath = finalStorage + req.file.filename;
|
||||||
req.body.tmpPath = req.file.destination + "/" + req.file.filename;
|
req.body.tmpPath = req.file.destination + req.file.filename;
|
||||||
}
|
}
|
||||||
next();
|
next();
|
||||||
});
|
});
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue