To update a file field that contains a large file for activity nodes, post the file content using the 2-Phase upload API. This will replace the file field with a new file.
The 2-Phase upload API is used for uploading large files. The API is based on existing API entry URLs, but it involves some special headers and request parameters. The generated response codes are the same codes that are found in previous APIs.
Initialize an upload session
Input format depends on the file content type that will be sent. The request should not put the file content in the request body.
Note: application/atom+xml and multipart are not supported.
A response that contains the header that is used in Phase 2.
Upload the file content.
Input format is file-in-body. The request body is the file content.