Skip to content

Commit

Permalink
Merge pull request #71 from whostolemyhat/bump-file-limit
Browse files Browse the repository at this point in the history
chore: increase the file limit for forms
  • Loading branch information
kenneth-gray authored Jul 30, 2024
2 parents 12870b1 + dc57744 commit 726a987
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/express.ts
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,13 @@ function createExpressApp({
app.use(cors({ credentials: true }));
app.use(cookieParser());
app.use(uiPath, express.static(path.join(__dirname, 'assets')));
app.use(express.urlencoded({ extended: false }));
app.use(
express.urlencoded({
extended: false,
limit: '10mb',
parameterLimit: 100000,
}),
);
app.use(express.json());
app.use(express.text({ type: 'application/graphql' }));

Expand Down

0 comments on commit 726a987

Please sign in to comment.