This commit is contained in:
tonyrewin 2022-12-03 15:26:35 +03:00
parent 2e245c8041
commit cd6f8a0551
2 changed files with 9 additions and 1 deletions

View File

@ -54,7 +54,7 @@ export async function handler(req, res) {
})
if (req.method === 'POST') {
const data: any = await parseFormData(req)
const data = await parseFormData(req)
const files = data?.files
const image = files.image
const body = fs.readFileSync(image.path)

8
vercel.json Normal file
View File

@ -0,0 +1,8 @@
{
"functions": {
"pages/api/upload.js": {
"memory": 3008,
"maxDuration": 30
}
}
}