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