question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

So 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:closed
  • Created 4 years ago
  • Comments:7 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
pcholujcommented, Jun 17, 2019

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.

0reactions
pcholujcommented, Jul 28, 2020

Please check the newest release. It should work.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found