move get_mimetype_from_file() to shared

Signed-off-by: Christian Hesse <mail@eworm.de>
3 files changed