# Upload Part

> Activity for updating a chunk of an upload session for a file in Box

`UiPath.Box.Activities.File.ChunkedUpload.UploadPart`

The **Upload Part** activity uses the Box [Upload part of file](https://developer.box.com/reference/put-files-upload-sessions-id/) API to update a chunk (**Part Index**) of an upload session (**Upload Session**) for a file.

After updating the session, the activity outputs a `BoxSessionPartInfo` object (**PartInfo**) that includes the properties of the update.

## How it works

The following steps and message sequence diagram is an example of how the activity works from design time (i.e., the activity dependencies and input/output properties) to run time.

1. Complete the [Setup](https://docs.uipath.com/activities/other/latest/legacy-integrations/box-setup) steps.
2. Add the [Box Scope](https://docs.uipath.com/activities/other/latest/legacy-integrations/box-scope) activity to your project.
3. Add an activity or run an external process that outputs a `BoxUploadSession` value (e.g., [Create Upload Session](https://docs.uipath.com/activities/other/latest/legacy-integrations/box-create-upload-session)).
4. Add the **Upload Part** activity inside the **Box Scope** activity.
5. Enter values for the [Input](https://docs.uipath.com/activities/other/latest/legacy-integrations/box-upload-part#upload-part) property.
6. Create and enter a `BoxSessionPartInfo` variable for the [Output](https://docs.uipath.com/activities/other/latest/legacy-integrations/box-upload-part#upload-part) property.
   * Your input property values are sent in the [Upload part of file](https://developer.box.com/reference/put-files-upload-sessions-id/) API operation request.
   * The operation returns the `BoxSessionPartInfo` value to your output property variable.

     ![docs image](https://dev-assets.cms.uipath.com/assets/images/activities/legacy-integrations-docs-image-180144-f845dacf-69e9cf96.webp)

## Properties

### Common

* **ContinueOnError** - Specifies if you want the activity to continue running when an error is thrown. This field supports only `Boolean` values.
* **DisplayName** - The display name of the activity. This field supports only `Strings` or `String` variables.

### Input

* **Part Index** - The index of the file part starting from 0. Enter a `BoxUploadSession`. This field supports only `Int32` variables.
* **Upload Session** - The upload session object. Enter a `BoxUploadSession`. To get the **BoxUploadSession** value, add an activity or run an external process that outputs a `BoxUloadSession` object (e.g., [Create Upload Session](https://docs.uipath.com/activities/other/latest/legacy-integrations/box-create-upload-session)).

### Misc

* **Private** - If selected, the values of variables and arguments are no longer logged at Verbose level.

### Options

* **File Path** - The location of the file that you want to upload. This field supports only `Strings` or `String` variables. If left empty, the activity defaults to the file path that was used to create the upload session.

### Output

* **PartInfo** - The `BoxSessionPartInfo` object that includes the part properties. This field supports only `BoxSessionPartInfo` variables. The `BoxSessionPartInfo` object includes multiple [properties](https://developer.box.com/reference/resources/upload-part/) that you can use in other activities.
