FormData
interface
interface FormData extends DomIterable<string, FormDataEntryValue>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".
variable
var FormData: { … }Provides a way to construct a set of key/value pairs representing form
fields and their values, which can then be sent using the fetch
API. It uses the same format a form would use if the encoding type were set
to "multipart/form-data".
See also
Constructors
constructor
new FormData(): FormDataProperties
prototype
readonly prototype: FormDataMethods
append
append(name: string, value: string | Blob, fileName?: string): voiddelete
delete(name: string): voidget
get(name: string): FormDataEntryValue | nullgetAll
getAll(name: string): FormDataEntryValue[]has
has(name: string): booleanset
set(name: string, value: string | Blob, fileName?: string): void