Skip to content

Commit bfe0aea

Browse files
committed
Increase filesize limit
1 parent 3c12f6e commit bfe0aea

File tree

2 files changed

+10
-2
lines changed

2 files changed

+10
-2
lines changed

CHANGELOG.md

+8
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,14 @@ All notable changes to this project will be documented in this file.
1313
- `mitre`: Filters the rules by mitre requirement
1414
- `tsc`: Filters the rules by tsc requirement
1515

16+
## [v3.13.0]
17+
18+
- Increase the maximum allowed size of the files to be uploaded from 1MB to 10MB. This change applies to:
19+
* `POST /manager/files`
20+
* `POST /cluster/:node_id/files`
21+
* `POST /agents/groups/:group_id/configuration`
22+
* `POST /agents/groups/:group_id/files/:file_name`
23+
1624
## [v3.12.3]
1725

1826
There are no changes for Wazuh API in this version.

app.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -167,8 +167,8 @@ if (config.python) {
167167
// Body
168168
app.use(bodyParser.json());
169169
app.use(bodyParser.urlencoded({extended: true}));
170-
app.use(bodyParser.text({type:"application/xml", limit:"1mb"}));
171-
app.use(bodyParser.raw({type:"application/octet-stream", limit:"1mb"}));
170+
app.use(bodyParser.text({type:"application/xml", limit:"10mb"}));
171+
app.use(bodyParser.raw({type:"application/octet-stream", limit:"10mb"}));
172172

173173

174174
/**

0 commit comments

Comments
 (0)