mirror of
https://github.com/mollersuite/monofile.git
synced 2024-11-29 00:46:26 -08:00
uhh
This commit is contained in:
parent
fe65b5d0c3
commit
8f2f6d2778
|
@ -51,7 +51,7 @@
|
||||||
justify-content: center;
|
justify-content: center;
|
||||||
}
|
}
|
||||||
#btnContainer:hover {
|
#btnContainer:hover {
|
||||||
border: 1px solid gray;
|
outline: 1px solid gray;
|
||||||
}
|
}
|
||||||
#dlbtn > p {
|
#dlbtn > p {
|
||||||
color:black;
|
color:black;
|
||||||
|
|
|
@ -128,7 +128,7 @@ app.get("/download/:fileId",(req,res) => {
|
||||||
|
|
||||||
fs.readFile(__dirname+"/../pages/download.html",(err,buf) => {
|
fs.readFile(__dirname+"/../pages/download.html",(err,buf) => {
|
||||||
if (err) {res.sendStatus(500);console.log(err);return}
|
if (err) {res.sendStatus(500);console.log(err);return}
|
||||||
res.send(buf.toString().replace(/\$FileName/g,file.filename).replace(/\$FileId/g,req.params.fileId).replace(/\$Version/g,pkg.version))
|
res.send(buf.toString().replace(/\$FileId/g,req.params.fileId).replace(/\$Version/g,pkg.version).replace(/\$FileName/g,file.filename))
|
||||||
})
|
})
|
||||||
} else {
|
} else {
|
||||||
ThrowError(res,404,"File not found.")
|
ThrowError(res,404,"File not found.")
|
||||||
|
|
Loading…
Reference in a new issue