mimetype_consistency should also work with non-image files
benjamingeer opened this issue · 2 comments
benjamingeer commented
Currently. this method is implemented as SipiImage::checkMimeTypeConsistency
and works only for images. It should be made more generic so that it also works for non-image files.
tobiasschweizer commented
I think the method checkMimeTypeConsistency
has to be moved out of SipiImage
so it can be called for non image files.
The method should already support non-image file extendsions:
Lines 57 to 64 in 965a9e3
tobiasschweizer commented
@lrosenth Could you give me a hand here?