diff --git a/collector/index.js b/collector/index.js index 2893754af6f1939085b4e05c39ac1211943f7685..7c41002dabee8a578c2f0453945bb03fad444d1b 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, }) );