encodeFormData
FunctionencodeFormData(params: any, forceFormData?: boolean): FormData | string
Encodes parameters in a FormData object in browsers or in a FormData in Node.js
Parameters
Parameter | Type | Notes |
---|---|---|
params | any | An object to be encoded. |
force | boolean |
Returns
FormData | string
The complete FormData object.