Add an uploadKey

This commit is contained in:
tgpethan 2020-05-21 15:23:57 +01:00
parent 1f92991bfc
commit 81047289b8
1 changed files with 5 additions and 0 deletions

5
EUS.js
View File

@ -175,6 +175,11 @@ module.exports = {
if (req.url != "/upload") return res.end("");
// Get time at the start of upload
if (useUploadKey) {
if (eusConfig["uploadKey"] != req.query["key"]) return res.end("Incorrect key provided for upload");
}
d = new Date(); startTime = d.getTime();
var fstream;
var thefe;