mirror of
https://github.com/Mintplex-Labs/anything-llm.git
synced 2025-05-02 17:07:13 +00:00
Add 3GB file size limit to body parser middlewares (#2390)
This commit is contained in:
parent
e07535471f
commit
348d9c8285
1 changed files with 4 additions and 2 deletions
|
@ -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,
|
||||
})
|
||||
);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue