Function lookupFromFile

  • Gets MIME type from a File object (browser environment only)

    Parameters

    • file: File

      The File object

    Returns string

    The MIME type from the file object, or lookup from filename as fallback