improved: own function for file type

+ filetype without dot and in uppercase text