Skip to content

Commit

Permalink
Fix Content-type header in Scribe.tsx (#7631) (#7634)
Browse files Browse the repository at this point in the history
Co-authored-by: Ashesh <[email protected]>
  • Loading branch information
nihal467 and Ashesh3 authored Apr 16, 2024
1 parent b7f1a0b commit 21387c0
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 21387c0

Please sign in to comment.