Class FileHelperHelper

Hierarchy

  • FileHelper

Methods

  • Method to get the file extension. Always returns it in lowercase.

    Returns

    The file extension, or an empty string if the file name has no extension.

    Parameters

    • fileName: undefined | null | string

      File name.

    Returns string

  • Parameters

    • ext: undefined | string

    Returns string | undefined

  • Convert application/octet-stream data url to image/IMAGE_FORMAT data url.

    See

    FileHelper.getMimeImageFormat.

    Returns

    modified data url if mime type inferring is successful or same input data url.

    Parameters

    • dataUrl: undefined | string

      application/octet-stream;base64 data url.

    • fileName: undefined | string

      file name with extention by which mime format will be inferred. For a list of supported extention

    • Optional mimeFormat: string

      manually set mime format for output result.

    Returns string | undefined

Generated using TypeDoc