Constructors Methods[iterator] [iterator] ( ) : IterableIterator < [ key: string , value: string | File ] , any , any > Returns IterableIterator < [ key: string , value: string | File ] , any , any > append append ( name , value ) : void Parameters name : string value : string Returns void append ( name , value , filename ? ) : void Parameters name : string value : Blob Optionalfilename : string Returns void delete delete ( name ) : void Returns void entries entries ( ) : IterableIterator < [ key: string , value: string | File ] , any , any > Returns IterableIterator < [ key: string , value: string | File ] , any , any > for Each for Each < This > ( callback , thisArg ? ) : void Parameters callback : ( ( this : This , value : string | File , key : string , parent : FormData ) => void ) ( this , value , key , parent ) : void Returns void OptionalthisArg : This Returns void get get ( name ) : null | string | File Returns null | string | File get All get All ( name ) : ( string | File ) [] Returns ( string | File ) [] has has ( name ) : boolean Returns boolean keys keys ( ) : IterableIterator < string , any , any > Returns IterableIterator < string , any , any > set set ( name , value ) : void Parameters name : string value : string Returns void set ( name , value , filename ? ) : void Parameters name : string value : Blob Optionalfilename : string Returns void values values ( ) : IterableIterator < string | File , any , any > Returns IterableIterator < string | File , any , any >
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