mirror of
https://github.com/openai/openai-cookbook
synced 2024-11-08 01:10:29 +00:00
This commit is contained in:
parent
295b10461a
commit
f72b7ebdb7
@ -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;
|
||||||
|
Loading…
Reference in New Issue
Block a user