Fixed mime type to be derived from file name extension