File download issues
parent
17b3c5e4cd
commit
44f74a27dd
|
|
@ -64,6 +64,7 @@ router.get("/download/:id",function(req,res){
|
|||
return;
|
||||
}
|
||||
var file = finalStorage + sermon.file;
|
||||
console.log(file);
|
||||
if (fs.existsSync(file)){
|
||||
res.download(file);
|
||||
} else {
|
||||
|
|
|
|||
Loading…
Reference in New Issue