- getFileType(
url: string,
): {
suffix: string;
type:
| "audio"
| "video"
| "image"
| "other"
| "word"
| "txt"
| "excel"
| "pdf"
| "ppt"
| "zip";
} Returns {
suffix: string;
type:
| "audio"
| "video"
| "image"
| "other"
| "word"
| "txt"
| "excel"
| "pdf"
| "ppt"
| "zip";
}
result
Determine file type based on link suffix