encodeFormData

encodeFormData

encodeFormData(paramsany, forceFormData?boolean): FormData | string

Encodes parameters in a FormData object in browsers or in a FormData in Node.js

Parameters
ParameterTypeNotes
params
any

An object to be encoded.

forceFormData
boolean
Returns 
FormData | string

The complete FormData object.

Your browser is no longer supported. Please upgrade your browser for the best experience. See our browser deprecation post for more details.