Skip to main content

Overview

Workflows can generate files and upload them to Codika’s storage using the Codika Upload File node. The uploaded file gets a documentId that can be included in the workflow’s output as a file type field.

Pattern

Step 1: Generate or download the file

Use any n8n node that produces binary data:

Step 2: Upload with Codika Upload File

The node uploads the binary data from the previous node and returns a documentId.

Step 3: Return the documentId in output

In a Code node before Codika Submit Result:

Step 4: Define file type in output schema

In config.ts:

File uploads in sub-workflows

Sub-workflows do not have their own Codika Init node, so the Upload File node needs explicit execution metadata. The parent must forward executionId and executionSecret.

Parent workflow passes metadata

Sub-workflow uses overrides

Sub-workflow input schema in config.ts

File input (user uploads)

Users can upload files via the input schema:
The file data arrives in the webhook payload and can be accessed in workflow nodes.

Supported file types for upload

The Codika Upload File node supports: