pragma/file resource for uploading and managing files. Files are stored in platform storage and expose download URLs that other resources can reference.
Prerequisites
- pragma CLI installed and authenticated (
pragma auth login)
Using the CLI
Upload with @path syntax
The simplest way to upload a file is using the@path syntax in your YAML config:
- Reads the file from the local path (relative to the YAML file’s directory)
- Uploads the file content to Pragmatiks storage
- Creates the
pragma/fileresource to track it
File Outputs
After the file resource reachesready state, it exposes these outputs:
View the outputs:
Using the SDK
Upload programmatically
Referencing Files from Other Resources
File outputs can be referenced by other resources using FieldReferences. For example, to use an uploaded document as a knowledge source for an AI agent:Supported Content Types
Any MIME type is supported. Common examples:Next Steps
Reactive Pipelines
Build pipelines where file changes automatically propagate.
CLI Resources
Full resource management commands.