public class UploadFileRequestBody extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
UploadFileRequestBody.Builder |
| Modifier and Type | Field and Description |
|---|---|
UploadFileRequestBodyAttributesField |
attributes
The additional attributes of the file being uploaded.
|
InputStream |
file
The content of the file to upload to Box.
|
String |
fileContentType |
String |
fileFileName |
| Modifier | Constructor and Description |
|---|---|
protected |
UploadFileRequestBody(UploadFileRequestBody.Builder builder) |
|
UploadFileRequestBody(UploadFileRequestBodyAttributesField attributes,
InputStream file) |
| Modifier and Type | Method and Description |
|---|---|
UploadFileRequestBodyAttributesField |
getAttributes() |
InputStream |
getFile() |
String |
getFileContentType() |
String |
getFileFileName() |
public final UploadFileRequestBodyAttributesField attributes
<Message warning>
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.
</Message>
public final InputStream file
<Message warning>
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.
</Message>
public String fileFileName
public String fileContentType
public UploadFileRequestBody(UploadFileRequestBodyAttributesField attributes, InputStream file)
protected UploadFileRequestBody(UploadFileRequestBody.Builder builder)
public UploadFileRequestBodyAttributesField getAttributes()
public InputStream getFile()
public String getFileFileName()
public String getFileContentType()