diff --git a/src/handlers/config.ts b/src/handlers/config.ts index 2f16eed..7d03dc2 100644 --- a/src/handlers/config.ts +++ b/src/handlers/config.ts @@ -10,7 +10,8 @@ const config = new ConfigManager(__path + '/config.json', true, { http_port: 3000, http_domain: 'example.org', http_enable_hsts: false, - devmode: true + devmode: true, + devmode_fileupload: true });//, log.core); // Disabled due to Cyclic dependencies with log handler (specifically-> devmode for loglevel) export default config; diff --git a/src/index.ts b/src/index.ts index 06b8d36..6b755de 100644 --- a/src/index.ts +++ b/src/index.ts @@ -78,7 +78,7 @@ if (!config.global.devmode) { ); // Add headers } -app.use(fileUpload({ useTempFiles: false, debug: config.global.devmode })); +app.use(fileUpload({ useTempFiles: false, debug: config.global.devmode_fileupload })); app.use(bodyParser.urlencoded({ extended: false })); app.use(bodyParser.json());