Add support for puremagic for guess_mimetype

Review Request #14091 — Created Aug. 8, 2024 and submitted — Latest diff uploaded

Information

RBTools
release-5.x

Reviewers

If a system has no "file" binary it is sometimes
easier and faster to install "puremagic" from pypi.
So let's try puremagic if we cannot find "file".

Removed "file" binary from system and saw that "rbt post" won't upload
images like png/jpg because guess_mimetype cannot detect it.
Installed puremagic from pypi and saw that images can be uploaded again.

Diff Revision 2 (Latest)

orig
1
2

Commits

First Last Summary ID Author
Add support for puremagic for guess_mimetype
If a system has no "file" binary it is sometimes easier and faster to install "puremagic" from pypi. So let's try puremagic if we cannot find "file".
85d9c478093030340c85c31da63d3c64833fa3e8 André Klitzing
setup.py
rbtools/utils/mimetypes.py
Loading...