Throws when file mime type is wrong or it's size is too large

Hierarchy

  • OrnamentError
    • BadFileError

Constructors

  • Parameters

    • message: string
    • Optional blob: Blob
    • Optional url: string

    Returns BadFileError

Properties

blob?: Blob
cause?: unknown
message: string
mimeType: null | string = null

Original file mime type

name: string
size: null | number = null

Original file size

stack?: string
url?: string
prepareStackTrace?: ((err, stackTraces) => any)

Type declaration

stackTraceLimit: number

Methods

  • Create .stack property on a target object

    Parameters

    • targetObject: object
    • Optional constructorOpt: Function

    Returns void

Generated using TypeDoc