diff --git a/apps/file-q-and-a/nextjs/src/pages/api/process-file.ts b/apps/file-q-and-a/nextjs/src/pages/api/process-file.ts index 72c9f366..2d874d52 100644 --- a/apps/file-q-and-a/nextjs/src/pages/api/process-file.ts +++ b/apps/file-q-and-a/nextjs/src/pages/api/process-file.ts @@ -27,6 +27,8 @@ export default async function handler( // Create a formidable instance to parse the request as a multipart form const form = new formidable.IncomingForm(); + form.maxFileSize = 30 * 1024 * 1024; // Set the max file size to 30MB + try { const { fields, files } = await new Promise<{ fields: Fields;