fix bug : file type

file type  should use the last substring split by . or ""