Add support for puremagic for guess_mimetype

Review Request #14091 — Created Aug. 8, 2024 and updated — 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.

Commits

Files