From ec18a0173623961363ac6cd97af0199474c2256b Mon Sep 17 00:00:00 2001 From: Nur Muhammad Date: Fri, 8 Jul 2022 20:34:47 +0800 Subject: [PATCH] Disabling file-upload debug --- app.js | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/app.js b/app.js index fa86483..1415e0a 100644 --- a/app.js +++ b/app.js @@ -20,8 +20,16 @@ app.use(express.json()); app.use(express.urlencoded({ extended: true })); + +/** + * BASED ON MANY QUESTIONS + * Actually ready mentioned on the tutorials + * + * Many people confused about the warning for file-upload + * So, we just disabling the debug for simplicity. + */ app.use(fileUpload({ - debug: true + debug: false })); app.get('/', (req, res) => {