File download issues

Transactions
Dan 2017-09-29 14:38:09 -06:00
parent 17b3c5e4cd
commit 44f74a27dd
1 changed files with 1 additions and 0 deletions

View File

@ -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 {