Mime type retrieving corrected for uppercase extensions