Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface FormData

Provides a way to easily construct a set of key/value pairs representing form fields and their values, which can then be easily sent using the XMLHttpRequest.send() method. It uses the same format a form would use if the encoding type were set to "multipart/form-data".

Hierarchy

  • FormData

Index

Methods

append

  • append(name: string, value: string | Blob, fileName?: string): void
  • Parameters

    • name: string
    • value: string | Blob
    • Optional fileName: string

    Returns void

delete

  • delete(name: string): void
  • Parameters

    • name: string

    Returns void

forEach

get

  • Parameters

    • name: string

    Returns FormDataEntryValue | null

getAll

  • Parameters

    • name: string

    Returns FormDataEntryValue[]

has

  • has(name: string): boolean
  • Parameters

    • name: string

    Returns boolean

set

  • set(name: string, value: string | Blob, fileName?: string): void
  • Parameters

    • name: string
    • value: string | Blob
    • Optional fileName: string

    Returns void

Generated using TypeDoc