Skip to content

Commit a1feedb

Browse files
committed
add upload_max_filesize_mb
1 parent 4270630 commit a1feedb

5 files changed

Lines changed: 6 additions & 4 deletions

File tree

OpenFlow/src/Config.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -201,6 +201,8 @@ export class Config {
201201
public static housekeeping_update_usage_hourly: boolean = Config.parseBoolean(Config.getEnv("housekeeping_update_usage_hourly", "false"));
202202
public static housekeeping_update_usersize_hourly: boolean = Config.parseBoolean(Config.getEnv("housekeeping_update_usersize_hourly", "true"));
203203

204+
public static upload_max_filesize_mb: number = parseInt(Config.getEnv("upload_max_filesize_mb", "25"));
205+
204206
public static getting_started_url: string = Config.getEnv("getting_started_url", "");
205207

206208
public static NODE_ENV: string = Config.getEnv("NODE_ENV", "development");

OpenFlow/src/LoginProvider.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -695,7 +695,7 @@ export class LoginProvider {
695695
const upload = multer({ //multer settings for single upload
696696
storage: storage,
697697
limits: {
698-
fileSize: (1000000 * 25) // 25MB
698+
fileSize: (1000000 * Config.upload_max_filesize_mb) // 25MB
699699
}
700700
}).any();
701701
app.delete("/upload", async (req: any, res: any, next: any): Promise<void> => {

OpenFlowNodeRED/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@openiap/nodered",
3-
"version": "1.3.91",
3+
"version": "1.3.92",
44
"description": "Simple wrapper around NodeRed, RabbitMQ and MongoDB to support a more scaleable NodeRed implementation.\r Also the \"backend\" for [OpenRPA](https://github.com/skadefro/OpenRPA)",
55
"main": "index.js",
66
"scripts": {

VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
1.3.91
1+
1.3.92

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@openiap/openflow",
3-
"version": "1.3.91",
3+
"version": "1.3.92",
44
"description": "Simple wrapper around NodeRed, RabbitMQ and MongoDB to support a more scaleable NodeRed implementation.\r Also the \"backend\" for [OpenRPA](https://github.com/skadefro/OpenRPA)",
55
"main": "index.js",
66
"scripts": {

0 commit comments

Comments
 (0)