結果 : get file type from filename javascript