Ainoflow Files icon

Ainoflow Files

Store and manage binary files in Ainoflow object storage

File → Create or Replace

AI-generated

Summary

Upload a file to Ainoflow storage, replacing an existing file with the same key in the specified category (upsert).

Inputs

  • category (required) — Category (namespace) for the file
  • key (required) — Key of the file
  • inputSource — Source of the file data. Options: binary (use binary property from previous node) or url (download from URL). Default: binary.
  • binaryPropertyName (required) — Name of binary property containing the file data (shown when inputSource is binary)
  • sourceUrl (required) — URL to download the file from (shown when inputSource is url). Example: https://example.com/file.pdf
  • createOrReplaceOptions — Additional fields for the upload. Optional: expiresAt for file expiration date in ISO 8601 format.

Output shape

JSON object containing the API response, typically file metadata.

The node returns the raw HTTP response from the Ainoflow API. If the response includes binary data, it is passed through accordingly; otherwise the JSON payload is returned.

Examples

Example 1: Upload a binary file from a previous node

Set resource=File, operation=Create or Replace, category=my-category, key=my-file.pdf, inputSource=binary, binaryPropertyName=data

Example 2: Upload a file from a public URL

Set resource=File, operation=Create or Replace, category=my-category, key=my-file.pdf, inputSource=url, sourceUrl=https://example.com/file.pdf

Links

Discussion