Options
All
  • Public
  • Public/Protected
  • All
Menu

An error that will be created if a user tries to upload a file that does not end with one of the FileValidationOptions.extensions.

remarks

@since 2.9.0

Hierarchy

Index

Constructors

  • new FileExtensionError(files: readonly File[], extensions: readonly string[]): FileExtensionError

Properties

cause?: Error
extensions: readonly string[]
files: readonly File[]
key: string

A unique key generated by nanoid that can be used as a React key

message: string
name: string
reason?: string
stack?: string
prepareStackTrace?: (err: Error, stackTraces: CallSite[]) => any

Type declaration

stackTraceLimit: number

Methods

  • captureStackTrace(targetObject: object, constructorOpt?: Function): void
  • Create .stack property on a target object

    Parameters

    • targetObject: object
    • Optional constructorOpt: Function

    Returns void

Generated using TypeDoc