Mimetype Bug
See original GitHub issueSo I’ve got a file: Name.msg
This file is a microsoft outlook email message file (similar to a .eml file but non-standard…) This file was emailed to me and I’m on a mac.
I use the file command in bash as follows:
$ file --mime-type -b Name.msg
And the file command gives me the correct mimetype for this file.
application/vnd.ms-outlook
However, when I upload to filestack, the mimetype is reported as ‘undefined’ in the javascript object returned by the callback.
And after completing the upload, if I use the metadata endpoint as follows:
https://cdn.filestackcontent.com/{{handle}}/metadata
I get this back for mimetype:
mimetype | “application/x-msi”
which is wrong.
I know the file command can do it, so I must assume that filestack has a bug in it.
Issue Analytics
- State:
- Created 4 years ago
- Comments:7 (2 by maintainers)
Top Results From Across the Web
Properly configuring server MIME types - MDN Web Docs
If a web server or application reports an incorrect MIME type for content (including a "default type" for unknown content), a web browser...
Read more >Fixing the Mimetype error - PracticePanther Help Center
When creating a new document template, you may run into the following error: This occurs due to your computer registering Microsoft Word documents...
Read more >golang: mimetype error for http.FileServer(....) - Stack Overflow
I am using Angular for frontend and go for the backend. When I try to load my application (browser=firefox) I see the following...
Read more >Invalid MIME type in org.kde.kdeconnect_open.desktop
Bug Description. Every time update-desktop-database runs (e.g. in a package's postinst script), it complains about a broken MIME entry in / ...
Read more >QA/Bugzilla/Attachments - The Document Foundation Wiki
File Extension MIME type
JPEG Image jpg, jpeg image/jpeg
PNG Image png image/png
SVG Image svg image/svg+xml
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Hi there is an open bug in the library that we are using for detecting mimetype https://github.com/sindresorhus/file-type/issues/162 I will try to make some workaround for this until it will be fixed.
Please check the newest release. It should work.