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".
interface FormData {
append(
name: string,
fileName?: string,
)
: void;
delete(name: string): void;
forEach(
callback: (
key: string,
parent: this,
) => void, thisArg?: any)
: void;
has(name: string): boolean;
keys(): IterableIterator<string>;
set(
name: string,
fileName?: string,
)
: void;
values(): IterableIterator<string>;
}
Methods
append(
name: string,
fileName?: string,
)
: void
delete(name: string): void
forEach(
callback: (
key: string,
parent: this,
) => void, thisArg?: any)
: void
has(name: string): boolean
keys(): IterableIterator<string>
set(
name: string,
fileName?: string,
)
: void
values(): IterableIterator<string>