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;