Skip to main content
Pragmatiks provides a built-in 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:
The CLI:
  1. Reads the file from the local path (relative to the YAML file’s directory)
  2. Uploads the file content to Pragmatiks storage
  3. Creates the pragma/file resource to track it

File Outputs

After the file resource reaches ready 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:
When the file is updated (re-uploaded with new content), the knowledge base automatically receives the new URL and can re-ingest the document.

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.