Check accepted file types against mime types

instead file extensions