Fix capture form field name — audio not file

This commit is contained in:
2026-04-26 18:43:41 -04:00
parent e28d5555f1
commit 86ab5ff6e0
+1 -1
View File
@@ -60,7 +60,7 @@ export default function CapturePage() {
try { try {
const blob = new Blob(chunksRef.current, { type: mimeTypeRef.current }); const blob = new Blob(chunksRef.current, { type: mimeTypeRef.current });
const form = new FormData(); const form = new FormData();
form.append('file', blob, 'capture.webm'); form.append('audio', blob, 'capture.webm');
const res = await fetch(`${API_URL}/api/capture`, { method: 'POST', body: form }); const res = await fetch(`${API_URL}/api/capture`, { method: 'POST', body: form });
if (res.ok) { if (res.ok) {
setState('saved'); setState('saved');