My problem as I get mimetype from email and sometimes it's broken. If empty i use detection from filename otherwise if it's not empty I want to validate it