file_ex is too short instead use file_ext that makes reference to extension