-
-
Notifications
You must be signed in to change notification settings - Fork 321
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Get mimetype from file extension, rather than from file content #200
base: develop
Are you sure you want to change the base?
Get mimetype from file extension, rather than from file content #200
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Add error handling
Forget what i said
But the method |
For now this might be bad idea, because default linux |
Is there an open issue for this ? If not, could you open one, ideally with an example file attached. |
File explorers does not infer file type from its content, but rather from its file extension. This PR makes filesystem more consistent with the files explorers.
This also fixes some bugs where sometimes you couldn't unarchive some archives.