Mime-type policy does not work when I change the file extension