Skip to main content
Builder is the full-code door onto the foundation, and everything you build there, agents, automations, and front-ends, shares the same workspace storage. The Files tab in the Builder sidebar lists every file uploaded to the current workspace. It is the workspace-level equivalent of object storage: files sit next to (but separate from) the page source tree, automations, and apps. Use Files for runtime assets: PDFs ingested by automations, user-uploaded images, exports produced by a workflow, evidence stored for audit. For React source files that ship with a page, stay in the page editor; for app code, stay in Imports → Custom Code. The Files tab has two tabs:
  • Assets lists the workspace assets: files versioned with the workspace, such as the published pages, their sources, and the images or fonts they use. Use assets for files that must follow the workspace into exports, Git, and other environments.
  • Uploads lists the runtime files uploaded to the workspace. The rest of this page describes them.

What you see

The Uploads tab shows one row per file: The header has a Refresh button that re-fetches the current page from the API, and a pagination control (Previous / Next) when the workspace has more files than fit in one page.

How files get there

The Files tab lists files and lets you upload them directly with the Import a file button. Files also appear there after being uploaded from an automation, a page, or the API:

From the Files tab

  1. In the Files tab, select the Uploads tab.
  2. Select Import a file and pick a file from your machine. The Import a file dialog opens.
  3. Optional: turn on Public access to make the file readable by anyone with its link.
  4. Optional: in Expires after (seconds), enter a lifetime for the file. Leave it empty to keep the file indefinitely.
  5. Select Import. The file appears in the list.

From an automation

Use a fetch instruction with multipart/form-data against the workspace files endpoint. The platform stores the file and returns its metadata (id, URL, mimetype, size).
The trigger for the upload is typically a webhook receiving a multipart/form-data request from a page or external system; see Triggers → URL for the request-body shape exposed to the automation.

From a page

A page can post directly to the workspace files endpoint using the injected SDK.

From the API directly

POST /v2/workspaces/{id}/files with a multipart/form-data body. The endpoint is documented in the Platform API reference.

File URLs

Each file is served from a signed URL stored on the file record. The URL is what the Open and Download buttons use; it is also what uploadedFile.url returns to automations and pages. URLs are signed for the workspace’s storage provider (S3-compatible by default in self-hosted deployments). They expire; re-fetch the file metadata if you need a fresh URL.

Restore a deleted file

If the workspace storage backend has object versioning enabled (S3/GCS bucket versioning, or Azure blob soft‑delete), a deleted file can be brought back from the API: POST /v2/workspaces/{id}/files/restore
  • paths — one or more storage object keys to restore. Bulk restore is supported by passing several keys. A single path string is also accepted.
  • expiresAfter (optional) — expiration in seconds, applied to every restored file.
  • metadata (optional) — arbitrary JSON attached to every restored file.
The default object key embeds both the id and the name (<workspaceId>/<id>.<filename>), so the file record is reconstructed from the key. The endpoint restores the object in the bucket and recreates its database entry. If the database entry still exists but the object was removed from the bucket, the object is restored and the entry’s metadata/expiresAfter are updated in place. Restoring a file that is still present is a no‑op that simply returns its metadata. Restore requires the storage backend to have versioning turned on — it is an infrastructure setting, not a workspace one. Without it, there is no prior version to recover and the call returns 404.

What’s not in Files

Lifecycle

  • Uploads are not included in workspace exports or pushes to Git; versioning saves the static configuration but not runtime data. See Versioning → What’s Versioned. To version a file with the workspace, add it as a workspace asset instead.
  • Deleting a file is immediate from the UI. It can be undone with POST /v2/workspaces/{id}/files/restore only when the storage backend has object versioning enabled (see Restore a deleted file); otherwise it is irreversible. If you need guaranteed history, archive the file in your own storage before deleting.
  • Per-file size limits and total quota are controlled by the platform deployment (see Self-Hosting → Configuration → Upload and request limits).

Troubleshooting

Click Refresh; the list shows the current page only and does not auto-update on every upload. If the file is still missing, check the workspace Activity for a workspaces.files.error event, which contains the underlying storage error.
Signed URLs expire. Re-fetch the file metadata (GET /v2/workspaces/{id}/files/{fileId}) to obtain a fresh URL, or rebuild the URL from a fresh uploadedFile payload returned by your automation.
The page must include the platform’s CSRF token in the request headers if the user is authenticated. See the SDK reference for the helper that injects it automatically.
Deletion requires the ManageWorkspace ability. Check your role in Settings → Sharing or with the workspace owner.

Next steps

Automations

Upload, transform, and route files inside workflows.

Pages

Build interfaces that upload to and read from workspace files.