public class UploadsManager extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
UploadsManager.Builder |
| Modifier and Type | Field and Description |
|---|---|
Authentication |
auth |
NetworkSession |
networkSession |
| Modifier | Constructor and Description |
|---|---|
|
UploadsManager() |
protected |
UploadsManager(UploadsManager.Builder builder) |
public Authentication auth
public NetworkSession networkSession
public UploadsManager()
protected UploadsManager(UploadsManager.Builder builder)
public Files uploadFileVersion(String fileId, UploadFileVersionRequestBody requestBody)
The `attributes` part of the body must come **before** the `file` part. Requests that do not follow this format when uploading the file will receive a HTTP `400` error with a `metadata_after_file_contents` error code.
fileId - The unique identifier that represents a file.
The ID for any file can be determined by visiting a file in the web application and copying the ID from the URL. For example, for the URL `https://*.app.box.com/files/123` the `file_id` is `123`. Example: "12345"
requestBody - Request body of uploadFileVersion methodpublic Files uploadFileVersion(String fileId, UploadFileVersionRequestBody requestBody, UploadFileVersionQueryParams queryParams)
The `attributes` part of the body must come **before** the `file` part. Requests that do not follow this format when uploading the file will receive a HTTP `400` error with a `metadata_after_file_contents` error code.
fileId - The unique identifier that represents a file.
The ID for any file can be determined by visiting a file in the web application and copying the ID from the URL. For example, for the URL `https://*.app.box.com/files/123` the `file_id` is `123`. Example: "12345"
requestBody - Request body of uploadFileVersion methodqueryParams - Query parameters of uploadFileVersion methodpublic Files uploadFileVersion(String fileId, UploadFileVersionRequestBody requestBody, UploadFileVersionHeaders headers)
The `attributes` part of the body must come **before** the `file` part. Requests that do not follow this format when uploading the file will receive a HTTP `400` error with a `metadata_after_file_contents` error code.
fileId - The unique identifier that represents a file.
The ID for any file can be determined by visiting a file in the web application and copying the ID from the URL. For example, for the URL `https://*.app.box.com/files/123` the `file_id` is `123`. Example: "12345"
requestBody - Request body of uploadFileVersion methodheaders - Headers of uploadFileVersion methodpublic Files uploadFileVersion(String fileId, UploadFileVersionRequestBody requestBody, UploadFileVersionQueryParams queryParams, UploadFileVersionHeaders headers)
The `attributes` part of the body must come **before** the `file` part. Requests that do not follow this format when uploading the file will receive a HTTP `400` error with a `metadata_after_file_contents` error code.
fileId - The unique identifier that represents a file.
The ID for any file can be determined by visiting a file in the web application and copying the ID from the URL. For example, for the URL `https://*.app.box.com/files/123` the `file_id` is `123`. Example: "12345"
requestBody - Request body of uploadFileVersion methodqueryParams - Query parameters of uploadFileVersion methodheaders - Headers of uploadFileVersion methodpublic UploadUrl preflightFileUploadCheck()
public UploadUrl preflightFileUploadCheck(PreflightFileUploadCheckRequestBody requestBody)
requestBody - Request body of preflightFileUploadCheck methodpublic UploadUrl preflightFileUploadCheck(PreflightFileUploadCheckHeaders headers)
headers - Headers of preflightFileUploadCheck methodpublic UploadUrl preflightFileUploadCheck(PreflightFileUploadCheckRequestBody requestBody, PreflightFileUploadCheckHeaders headers)
requestBody - Request body of preflightFileUploadCheck methodheaders - Headers of preflightFileUploadCheck methodpublic Files uploadFile(UploadFileRequestBody requestBody)
The `attributes` part of the body must come **before** the `file` part. Requests that do not follow this format when uploading the file will receive a HTTP `400` error with a `metadata_after_file_contents` error code.
requestBody - Request body of uploadFile methodpublic Files uploadFile(UploadFileRequestBody requestBody, UploadFileQueryParams queryParams)
The `attributes` part of the body must come **before** the `file` part. Requests that do not follow this format when uploading the file will receive a HTTP `400` error with a `metadata_after_file_contents` error code.
requestBody - Request body of uploadFile methodqueryParams - Query parameters of uploadFile methodpublic Files uploadFile(UploadFileRequestBody requestBody, UploadFileHeaders headers)
The `attributes` part of the body must come **before** the `file` part. Requests that do not follow this format when uploading the file will receive a HTTP `400` error with a `metadata_after_file_contents` error code.
requestBody - Request body of uploadFile methodheaders - Headers of uploadFile methodpublic Files uploadFile(UploadFileRequestBody requestBody, UploadFileQueryParams queryParams, UploadFileHeaders headers)
The `attributes` part of the body must come **before** the `file` part. Requests that do not follow this format when uploading the file will receive a HTTP `400` error with a `metadata_after_file_contents` error code.
requestBody - Request body of uploadFile methodqueryParams - Query parameters of uploadFile methodheaders - Headers of uploadFile methodpublic Files uploadWithPreflightCheck(UploadWithPreflightCheckRequestBody requestBody)
requestBody - The requestBody parameterpublic Files uploadWithPreflightCheck(UploadWithPreflightCheckRequestBody requestBody, UploadWithPreflightCheckQueryParams queryParams)
requestBody - The requestBody parameterqueryParams - Query parameters of uploadFile methodpublic Files uploadWithPreflightCheck(UploadWithPreflightCheckRequestBody requestBody, UploadWithPreflightCheckHeaders headers)
requestBody - The requestBody parameterheaders - Headers of uploadFile methodpublic Files uploadWithPreflightCheck(UploadWithPreflightCheckRequestBody requestBody, UploadWithPreflightCheckQueryParams queryParams, UploadWithPreflightCheckHeaders headers)
requestBody - The requestBody parameterqueryParams - Query parameters of uploadFile methodheaders - Headers of uploadFile methodpublic Authentication getAuth()
public NetworkSession getNetworkSession()