added function to get filetype_from_file_path