Skip to content

encodeObjectBody ​

Overview ​

Keep JSON for saves without files. Multipart fields contain JSON values, with null placeholders for files; the manifest maps file part names to their paths. Unsupported multipart values throw before a request is sent.

Signature ​

encodeObjectBody(object)

Parameters ​

NameTypeRequiredDescription
objectobjectyesThe values to save.

Returns ​

string | FormData

The encoded request body.

Source ​

client/lib/utils/multipart.js:33