Skip to main content

Constants for the fields of the /upload/files request.

Option fields

options

Constants for options.

pub const BASE64: &str = “base64”;

Specifies that the file data being uploaded has been base64 encoded.

pub const CANCEL: &str = “cancel”;

Cancel the specified multipart file upload.

pub const COMPLETE: &str = “complete”;

Complete the specified multipart file upload.

pub const DELETE_IF_EXISTS: &str = “delete_if_exists”;

If true, any existing files specified in file_names will be deleted prior to start of upload. Otherwise the file is replaced once the upload completes. Rollback of the original file is no longer possible if the upload is cancelled, aborted or fails if the file was deleted beforehand.

pub const FALSE: &str = “false”;
pub const FILE_ENCODING: &str = “file_encoding”;

Encoding that has been applied to the uploaded file data. When using JSON serialization it is recommended to utilize base64. The caller is responsible for encoding the data provided in this payload

pub const INIT: &str = “init”;

Initialize a multipart file upload.

pub const MULTIPART_OPERATION: &str = “multipart_operation”;

Multipart upload operation to perform.

pub const MULTIPART_UPLOAD_PART_NUMBER: &str = “multipart_upload_part_number”;

Incremental part number for each part in a multipart upload. Part numbers start at 1, increment by 1, and must be uploaded sequentially

pub const MULTIPART_UPLOAD_UUID: &str = “multipart_upload_uuid”;

UUID to uniquely identify a multipart upload.

pub const NONE: &str = “none”;

Default, indicates this is not a multipart upload.

pub const TRUE: &str = “true”;
pub const UPLOAD_PART: &str = “upload_part”;

Uploads a part of the specified multipart file upload.