synchronize
This commit is contained in:
parent
507e1bf09e
commit
4a7cd02555
0
README.md
Normal file → Executable file
0
README.md
Normal file → Executable file
@ -2,7 +2,7 @@ module.exports = {
|
||||
"apps": [
|
||||
{
|
||||
"script": "qonq.js",
|
||||
"uid": "file-server",
|
||||
"uid": "qonq",
|
||||
"log_file": "qonq.log",
|
||||
"env": {
|
||||
"NODE_ENV": "production",
|
||||
|
0
files/.gitkeep
Normal file → Executable file
0
files/.gitkeep
Normal file → Executable file
3
qonq.js
Normal file → Executable file
3
qonq.js
Normal file → Executable file
@ -21,7 +21,8 @@ app.post("/upload", (req, res, next) => {
|
||||
if (req.headers.authentication != AUTH_TOKEN) return res.status(403).send("Unauthorized");
|
||||
var form = new formidable.IncomingForm({
|
||||
maxFileSize: 2**30, // 1 GiB
|
||||
maxFields: 1
|
||||
maxFields: 1,
|
||||
uploadDir: "files/tmp"
|
||||
});
|
||||
form.parse(req, function(err, fields, files) {
|
||||
if (err) return next(err);
|
||||
|
Loading…
x
Reference in New Issue
Block a user