Skip to content

Commit

Permalink
use correct media type when uploading files
Browse files Browse the repository at this point in the history
  • Loading branch information
CiotkaCierpienia committed Jan 15, 2025
1 parent 6793231 commit 9ec7491
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/media.js
Original file line number Diff line number Diff line change
Expand Up @@ -61,8 +61,7 @@ async function mediaImporter (directory, flotiqApi, mediaApi) {
type: file.mimeType
});

form.append('type', 'file');
form.append('save', 1);
form.append('type', file.type);
form.append('file', blob, file.fileName);

const mediaEntity = await mediaApi
Expand Down

0 comments on commit 9ec7491

Please sign in to comment.