Skip to content

Commit

Permalink
address openai#248
Browse files Browse the repository at this point in the history
  • Loading branch information
isafulf committed Apr 3, 2023
1 parent c7384cc commit fb7a87a
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions apps/file-q-and-a/nextjs/src/pages/api/process-file.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit fb7a87a

Please sign in to comment.