Ainoflow Files icon

Ainoflow Files

Store and manage binary files in Ainoflow object storage

File → Create

AI-generated

Summary

Upload a file to Ainoflow storage in the specified category.

Inputs

  • category (required) — Category (namespace) for the file.
  • inputSource — Source of the file data to upload. Default: binary. Select 'url' to download from a URL, or 'binary' to use data from a previous node's binary property.
  • binaryPropertyName (required) — Name of the binary property containing the file data. Shown when resource is file, operation is create or createOrReplace, and inputSource is binary.
  • sourceUrl (required) — URL to download the file from. Shown when resource is file, operation is create or createOrReplace, and inputSource is url.
  • createOptions — Optional additional fields for file creation. Shown when resource is file and operation is create.

Output shape

binaryOrJson

Returns the upload response from the Ainoflow API. If the response includes binary data, it is made available alongside JSON metadata; otherwise, pure JSON is returned.

Examples

Example 1: Create a file using binary data from a previous node.

Set inputSource to 'binary', specify the binaryPropertyName containing the file, and optionally set createOptions.key for a custom key or createOptions.expiresAt for expiration.

Example 2: Create a file by downloading from a URL.

Set inputSource to 'url', provide the Source URL in the sourceUrl parameter, and optionally configure createOptions.key and createOptions.expiresAt.

Links

Discussion