diff --git a/webapp/components/Chat/Chat.vue b/webapp/components/Chat/Chat.vue index 9fff020f1..893b6164f 100644 --- a/webapp/components/Chat/Chat.vue +++ b/webapp/components/Chat/Chat.vue @@ -376,7 +376,11 @@ export default { const filesToUpload = hasFiles ? files.map((file) => ({ - upload: new File([file.blob], `${file.name}.${file.extension}`), + upload: new File( + [file.blob], + // Captured audio already has the right extension in the name + file.extension ? `${file.name}.${file.extension}` : file.name, + ), name: file.name, type: file.type, }))