Function getFileIconUrl

  • Returns a URL to the appropriate file icon image based on the specified file name. Note that file name can be a full path or just the file name and extension. If the file name does not include an extension, the URL for a generic image will be returned

    Parameters

    • fileName: string

    Returns string

    The URL suitable for use in the src attribute of an img element.