code: def get_url_file_name(url):
          
          url_root_ext = os.path.splitext(url)
  
          if len(url_root_ext[1]) <= MAX_FILE_EXTENSION_LENGTH:
              return os.path.split(url_root_ext[0])[1]
          else:
              return os.path.split(url)[1]
docs: Determines the url's file name.
  
          :param str url: the url to extract the file name from
          :return str: the filename (without the file extension) on the server