Skip to content

Commit 9306665

Browse files
committed
fix: update maxFileSize calculation for graphqlUploadExpress middleware
1 parent 34f4bc9 commit 9306665

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/main.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ async function bootstrap() {
3838

3939
app.use(
4040
'/graphql',
41-
graphqlUploadExpress({ maxFileSize: 10000000, maxFiles: 10 }),
41+
graphqlUploadExpress({ maxFileSize: 1000 * 1000 * 10, maxFiles: 10 }),
4242
(req: Request, res: Response, next: NextFunction) => {
4343
const accept = req.headers.accept || '';
4444
if (

0 commit comments

Comments
 (0)