Added method to AbstractFile to check mime type. Deprecate duplicate method