Currently, To identify whether a URL is of a file or page I\'m setting an array of possible downloadable items file types and checking the fileExtension is
fileExtension