To create a file field that contains a large file for an existing activities node, such as an entry or to-do item, post the file content by the 2-Phase upload API. The API only supports single file uploads. If you want to upload more than one file, you will have to go through the upload process for each file.
The 2-Phase upload API is used for large file uploading. 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.