Overview
Workflows can generate files and upload them to Codika’s storage using the Codika Upload File node. The uploaded file gets adocumentId 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
documentId.
Step 3: Return the documentId in output
In a Code node before Codika Submit Result:Step 4: Define file type in output schema
Inconfig.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 forwardexecutionId 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:Supported file types for upload
The Codika Upload File node supports:| Category | Types |
|---|---|
| Documents | PDF, Word (.docx), Excel (.xlsx), Text (.txt) |
| Images | PNG, JPG, GIF, SVG, WEBP |
| Archives | ZIP, TAR, TAR.GZ |
| Media | Video (various formats) |
| Data | JSON, YAML, CSV |