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

Methods

append(
name: string,
value: string | Blob,
fileName?: string,
): void
[src]
delete(name: string): void[src]
get(name: string): FormDataEntryValue | null[src]
getAll(name: string): FormDataEntryValue[][src]
has(name: string): boolean[src]
set(
name: string,
value: string | Blob,
fileName?: string,
): void
[src]
keys(): IterableIterator<string>[src]
values(): IterableIterator<string>[src]
entries(): IterableIterator<[string, FormDataEntryValue]>[src]
[[Symbol.iterator]](): IterableIterator<[string, FormDataEntryValue]>[src]
forEach(callback: (
value: FormDataEntryValue,
key: string,
parent: this,
) => void
, thisArg?: any
): void
[src]
variable FormData
{ prototype: FormData; new (): FormData; }[src]