isafulf 2023-04-02 17:28:52 -07:00
parent 295b10461a
commit f72b7ebdb7

View File

@ -27,6 +27,8 @@ export default async function handler(
// Create a formidable instance to parse the request as a multipart form // Create a formidable instance to parse the request as a multipart form
const form = new formidable.IncomingForm(); const form = new formidable.IncomingForm();
form.maxFileSize = 30 * 1024 * 1024; // Set the max file size to 30MB
try { try {
const { fields, files } = await new Promise<{ const { fields, files } = await new Promise<{
fields: Fields; fields: Fields;