added check by mime-type