From 81047289b840be8dec299f200bf63778f007569e Mon Sep 17 00:00:00 2001 From: tgpethan Date: Thu, 21 May 2020 15:23:57 +0100 Subject: [PATCH] Add an uploadKey --- EUS.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/EUS.js b/EUS.js index 98003c7..6f49c80 100644 --- a/EUS.js +++ b/EUS.js @@ -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;