Options
All
  • Public
  • Public/Protected
  • All
Menu

Class FileExtensionError

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

constructor

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

Properties

extensions

extensions: readonly string[]

files

files: readonly File[]

key

key: string

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

message

message: string

name

name: string

Optional reason

reason: string

Optional stack

stack: string

Static stackTraceLimit

stackTraceLimit: number

Methods

Static captureStackTrace

  • captureStackTrace(targetObject: object, constructorOpt?: Function): void

Static Optional prepareStackTrace

  • prepareStackTrace(err: Error, stackTraces: CallSite[]): any

Generated using TypeDoc