filestack / filestack-js

Official Javascript SDK for the Filestack API and content ingestion system.
https://www.filestack.com
MIT License
206 stars 77 forks source link

Mimetype for keynote files are not resolved #391

Closed doganyazar closed 3 years ago

doganyazar commented 3 years ago

Uploading keynote files returns mimetype: undefined. Expected result would be application/x-iwork-keynote-sffkey or application/vnd.apple.keynote

Screen Shot 2563-10-07 at 17 10 42
maryfs commented 3 years ago

@doganyazar which version is it?

doganyazar commented 3 years ago

"filestack-js": "^3.5.0", "filestack-react": "^3.1.0"

maryfs commented 3 years ago

@doganyazar update to the newest version (3.18.0) and let me know. We were adding this to latest release.

doganyazar commented 3 years ago

@maryfs I have tried it with the latest version from this link: http://static.filestackapi.com/filestack-js/3.x.x/filestack.min.js

filestack.getVersion()
"JS-3.18.0"

And result is the same, no mimetype.

maryfs commented 3 years ago

@doganyazar i've checked your file, and it was stored with correct mimetype:

"filename": "dodo-keynote.key",
  "provider": "amazon",
  "size": 450933,
  "mimetype": "application/vnd.apple.keynote",

but yes, lib should return this mimetype after upload, we will fix it in next release. Thanks.

Macavirus commented 3 years ago

I believe this PR now release and on NPM should close this issue: https://github.com/filestack/filestack-js/pull/400

It is available as part of version 3.20.0

maryfs commented 3 years ago

@doganyazar please check on v 3.20.0 and let us know. Should be fixed.