UploadFile
Uploads a new file into a specified Box folder.
Input
| Name | Type | Accepts Input Streams | Description |
| FilePath | String | False | The full local path of the file, including its name, to upload. This takes precedence over the Content input. |
| ParentId | String | False | The identifier of the parent folder where the file will be uploaded. If not provided, the file is uploaded to the root folder of the Box account.
The default value is 0. |
| AsUserId | String | False | The Id of the user to impersonate during the upload. Only works with Admin, Co-Admin, and Service Accounts. |
| Content | String | True | The file content as an InputStream, used when FilePath is not provided. |
| FileName | String | False | The name of the file to upload, including its extension. Required if Content is specified. If FilePath is also provided, this value overrides the file's original name. |
| CreatedAt | Datetime | False | An optional timestamp indicating when the file was originally created. Defaults to the upload time if not set. Format example: '2020-01-01T12:00:00-05:00'. |
| ModifiedAt | Datetime | False | An optional timestamp indicating when the file was last modified. Defaults to the upload time if not set. Format example: '2020-01-01T12:00:00-05:00'. |
| Hash | String | False | An optional SHA1 hash of the file to validate that the file was not corrupted during upload. |
Result Set Columns
| Name | Type | Description |
| Success | String | Indicates whether the file was uploaded successfully. |
| ID | String | The unique identifier of the uploaded file. |
| VersionID | String | The identifier for the specific version of the uploaded file. |
| Hash | String | The SHA1 hash of the uploaded file, used for integrity verification. |
| Etag | String | The entity tag of the uploaded file, used for versioning and concurrency control. |