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".
Constructor
Methods
Overload 1 of 3
Parameters
- name: string
- value: string | Blob
Returns
void
Overload 2 of 3
append(name: string, value: string): voidParameters
- name: string
- value: string
Returns
void
Overload 3 of 3
Parameters
- name: string
- blobValue: Blob
- filename: stringoptional
Returns
void
forEach
View sourceforEach(callbackfn: (value: FormDataEntryValue, key: string, parent: FormData) => void, thisArg?: any): voidParameters
- callbackfn: (value: FormDataEntryValue, key: string, parent: FormData) => void
- thisArg: anyoptional
Returns
void
Overload 1 of 3
Parameters
- name: string
- value: string | Blob
Returns
void
Overload 2 of 3
set(name: string, value: string): voidParameters
- name: string
- value: string
Returns
void
Overload 3 of 3
Parameters
- name: string
- blobValue: Blob
- filename: stringoptional
Returns
void