diff --git a/src/Components/Scribe/Scribe.tsx b/src/Components/Scribe/Scribe.tsx index 67c5fdcf3c8..cf9595d733d 100644 --- a/src/Components/Scribe/Scribe.tsx +++ b/src/Components/Scribe/Scribe.tsx @@ -91,7 +91,7 @@ export const Scribe: React.FC = ({ fields, onFormUpdate }) => { const newFile = new File([f], `${internal_name}`, { type: f.type }); const config = { headers: { - "Content-type": newFile?.type, + "Content-type": newFile?.type?.split(";")?.[0], "Content-disposition": "inline", }, }; @@ -120,7 +120,7 @@ export const Scribe: React.FC = ({ fields, onFormUpdate }) => { name: filename, associating_id: associatingId, file_category: category, - mime_type: audioBlob?.type.split(";")[0], + mime_type: audioBlob?.type?.split(";")?.[0], }, }) .then((response) => {