Skip to content

Commit

Permalink
Fix Content-type header in Scribe.tsx (ohcnetwork#7631)
Browse files Browse the repository at this point in the history
  • Loading branch information
Ashesh3 authored Apr 16, 2024
1 parent 4ff931b commit 6500fc6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Components/Scribe/Scribe.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ export const Scribe: React.FC<ScribeProps> = ({ 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",
},
};
Expand Down Expand Up @@ -120,7 +120,7 @@ export const Scribe: React.FC<ScribeProps> = ({ fields, onFormUpdate }) => {
name: filename,
associating_id: associatingId,
file_category: category,
mime_type: audioBlob?.type.split(";")[0],
mime_type: audioBlob?.type?.split(";")?.[0],
},
})
.then((response) => {
Expand Down

0 comments on commit 6500fc6

Please sign in to comment.