Add an uploadKey
This commit is contained in:
parent
1f92991bfc
commit
81047289b8
1 changed files with 5 additions and 0 deletions
5
EUS.js
5
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;
|
||||
|
|
Loading…
Reference in a new issue