Upload file
Upload a local file to a Box folder. Can replace the existing file of the same name as a new version.
Command in the Box toolkit · id ooa.box/upload_file · 8 inputs (2 required), 1 output
Inputs
| Input | Type | Required | Default | What it is |
|---|---|---|---|---|
| Local path | File | Yes | File on this machine to upload. | |
| Folder ID | String | No | 0 | Box folder to upload into. 0 is the top level of All Files. |
| File name | String | No | Name to give the file in Box. Leave empty to keep the local name. | |
| Replace existing | Boolean | No | false | If a file of this name is already there, upload as its new version instead of failing. |
| Access token | Credential | Yes | Box access token from the vault. Or leave it empty and choose a connection that signs in, which gets and renews the token. | |
| As user | String | No | Act on behalf of this Box user id (needs an admin or service account token). Leave empty to act as yourself. | |
| Upload address (URL) | String | No | https://upload.box.com | Box upload address. Leave the default unless your administrator gives you another. |
| Endpoint address | String | No | https://api.box.com | Box API address. Leave the default unless your administrator gives you another. |
Outputs
| Output | Type | What it is |
|---|---|---|
| file_id | String | Id of the uploaded file. |