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".

MDN Reference

Constructors

Methods

  • Returns IterableIterator<[key: string, value: string | File], any, any>

  • Parameters

    • name: string
    • value: string

    Returns void

  • Parameters

    • name: string
    • value: Blob
    • Optionalfilename: string

    Returns void

  • Parameters

    • name: string

    Returns void

  • Returns IterableIterator<[key: string, value: string | File], any, any>

  • Type Parameters

    • This = unknown

    Parameters

    • callback: ((this: This, value: string | File, key: string, parent: FormData) => void)
        • (this, value, key, parent): void
        • Parameters

          Returns void

    • OptionalthisArg: This

    Returns void

  • Parameters

    • name: string

    Returns null | string | File

  • Parameters

    • name: string

    Returns (string | File)[]

  • Parameters

    • name: string

    Returns boolean

  • Returns IterableIterator<string, any, any>

  • Parameters

    • name: string
    • value: string

    Returns void

  • Parameters

    • name: string
    • value: Blob
    • Optionalfilename: string

    Returns void

  • Returns IterableIterator<string | File, any, any>