Upload Binary Content
You can upload binary content to any force.com endpoint that supports the binary upload feature.
The sendRequest() method in react.force.net.js has a new optional parameter named fileParams.
This parameter expects the following form:
For example:
The following examples show how to use sendRequest() with fileParams to upload a binary file, such as a user profile photo.