added getMime() to assign mine type from file name