diff --git a/collector/index.js b/collector/index.js index 2893754af..7c41002da 100644 --- a/collector/index.js +++ b/collector/index.js @@ -16,12 +16,14 @@ const extensions = require("./extensions"); const { processRawText } = require("./processRawText"); const { verifyPayloadIntegrity } = require("./middleware/verifyIntegrity"); const app = express(); +const FILE_LIMIT = "3GB"; app.use(cors({ origin: true })); app.use( - bodyParser.text(), - bodyParser.json(), + bodyParser.text({ limit: FILE_LIMIT }), + bodyParser.json({ limit: FILE_LIMIT }), bodyParser.urlencoded({ + limit: FILE_LIMIT, extended: true, }) );