Skip to main content

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​

InputTypeRequiredDefaultWhat it is
Local pathFileYesFile on this machine to upload.
Folder IDStringNo0Box folder to upload into. 0 is the top level of All Files.
File nameStringNoName to give the file in Box. Leave empty to keep the local name.
Replace existingBooleanNofalseIf a file of this name is already there, upload as its new version instead of failing.
Access tokenCredentialYesBox access token from the vault. Or leave it empty and choose a connection that signs in, which gets and renews the token.
As userStringNoAct on behalf of this Box user id (needs an admin or service account token). Leave empty to act as yourself.
Upload address (URL)StringNohttps://upload.box.comBox upload address. Leave the default unless your administrator gives you another.
Endpoint addressStringNohttps://api.box.comBox API address. Leave the default unless your administrator gives you another.

Outputs​

OutputTypeWhat it is
file_idStringId of the uploaded file.