Add an uploadKey

This commit is contained in:
tgpethan 2020-05-21 15:23:57 +01:00
parent 1f92991bfc
commit 81047289b8

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;