This commit is contained in:
parent
c7384cc353
commit
fb7a87a8a5
1 changed files with 2 additions and 0 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in a new issue