make sure we set the mime type for a file and try a bit harder to find one