mirror of
https://github.com/james-m-jordan/openai-cookbook.git
synced 2025-05-09 19:32:38 +00:00
This commit is contained in:
parent
c7384cc353
commit
fb7a87a8a5
@ -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…
x
Reference in New Issue
Block a user