Skip to main content

PutBoxFile

Description

Puts content to a Box folder.

Tags

box, put, storage

Properties

In the list below required Properties are shown with an asterisk (*). Other properties are considered optional. The table also indicates any default values, and whether a property supports the NiFi Expression Language.

Display NameAPI NameDefault ValueAllowable ValuesDescription
Box Client Service *box-client-serviceController Service:
BoxClientService

Implementations:
JsonConfigBasedBoxClientService
Controller Service used to obtain a Box API connection.
Folder ID *box-folder-idThe ID of the folder where the file is uploaded. Please see Additional Details to obtain Folder ID.

Supports Expression Language, using FlowFile attributes and Environment variables.
Subfolder Namesubfolder-nameThe name (path) of the subfolder where files are uploaded. The subfolder name is relative to the folder specified by 'Folder ID'. Example: subFolder, subFolder1/subfolder2

Supports Expression Language, using FlowFile attributes and Environment variables.
Create Subfolder *create-folderfalse
  • true
  • false
Specifies whether to check if the subfolder exists and to automatically create it if it does not. Permission to list folders is required.

This property is only considered if:
  • the property Subfolder Name has a value specified
Filename *file-name${filename}The name of the file to upload to the specified Box folder.

Supports Expression Language, using FlowFile attributes and Environment variables.
Conflict Resolution Strategy *conflict-resolution-strategyfail
  • fail
  • ignore
  • replace
Indicates what should happen when a file with the same name already exists in the specified Box folder.
Chunked Upload Thresholdchunked-upload-threshold20 MBThe maximum size of the content which is uploaded at once. FlowFiles larger than this threshold are uploaded in chunks. Chunked upload is allowed for files larger than 20 MB. It is recommended to use chunked upload for files exceeding 50 MB.

Dynamic Properties

This component does not support dynamic properties.

Relationships

NameDescription
failureFiles that could not be written to Box for some reason are transferred to this relationship.
successFiles that have been successfully written to Box are transferred to this relationship.

Reads Attributes

NameDescription
filenameUses the FlowFile's filename as the filename for the Box object.

Writes Attributes

NameDescription
box.idThe id of the file
box.sizeThe size of the file
box.timestampThe last modified time of the file
error.codeThe error code returned by Box
error.messageThe error message returned by Box
filenameThe name of the file
pathThe folder path where the file is located

State Management

This component does not store state.

Restricted

This component is not restricted.

Input Requirement

This component requires an incoming relationship.

System Resource Considerations

This component does not specify system resource considerations.

See Also

FetchBoxFile, ListBoxFile