Skip to content

Commit

Permalink
Merge pull request #93 from flotiq/bugfix/correct-media-type-in-import
Browse files Browse the repository at this point in the history
use correct media type when uploading files
  • Loading branch information
KarolNet authored Jan 15, 2025
2 parents 6793231 + e9828ba commit 31ec6d1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "flotiq-cli",
"version": "2.9.0",
"version": "2.9.1",
"description": "Flotiq CLI",
"main": "src/command/command.js",
"private": false,
Expand Down
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 31ec6d1

Please sign in to comment.