mirror of
https://github.com/mollersuite/monofile.git
synced 2024-11-25 07:06:25 -08:00
uhh
This commit is contained in:
parent
fe65b5d0c3
commit
8f2f6d2778
|
@ -51,7 +51,7 @@
|
|||
justify-content: center;
|
||||
}
|
||||
#btnContainer:hover {
|
||||
border: 1px solid gray;
|
||||
outline: 1px solid gray;
|
||||
}
|
||||
#dlbtn > p {
|
||||
color:black;
|
||||
|
|
|
@ -128,7 +128,7 @@ app.get("/download/:fileId",(req,res) => {
|
|||
|
||||
fs.readFile(__dirname+"/../pages/download.html",(err,buf) => {
|
||||
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 {
|
||||
ThrowError(res,404,"File not found.")
|
||||
|
|
Loading…
Reference in a new issue