diff --git a/src/pages/api/evaluate/speaking.ts b/src/pages/api/evaluate/speaking.ts index 7f4e6eea..d02192d7 100644 --- a/src/pages/api/evaluate/speaking.ts +++ b/src/pages/api/evaluate/speaking.ts @@ -20,6 +20,8 @@ async function handler(req: NextApiRequest, res: NextApiResponse) { const form = formidable({keepExtensions: true}); await form.parse(req, async (err: any, fields: any, files: any) => { + if (err) console.log(err); + const audioFile = files.audio; const audioFileRef = ref(storage, `speaking_recordings/${(audioFile as any).path.replace("upload_", "")}`);