Skip to content

file-foundation

Defines the fileProvider extension point and a per-tenant provider config key that selects which registered storage plugin to use at runtime. Call createFileProviderForTenant(ctx, tenantId) to get a FileStorageProvider — use this feature together with at least one file-provider-* feature; the files feature builds on top of it for tracked FileRef entities with GDPR hooks.

  • Requires: config
  • Activation: always on (not toggleable)

Per-tenant config keys, set via the tenant-admin UI or a seed. 🔒 = encrypted at rest.

| Key | Type | Default | Scope | Who can write | Who can read | |---|---|---|---|---|---| | provider | text | "" | tenant | TenantAdmin, SystemAdmin | TenantAdmin, SystemAdmin, User |