Why multi-modal traces need their own storage in self-hosted Langfuse
When an LLM application starts sending images, audio or files alongside its text, the trace database is no longer the right place for those bytes. In a self-hosted Langfuse deployment, multi-modal attachments need their own object storage bucket, configured through the LANGFUSE_S3_MEDIA_UPLOAD_* variables, so the media is stored outside the relational and analytical data stores. Per the Langfuse documentation, the SDKs extract base64 data URIs from multi-modal payloads, upload them to that bucket and link them to the trace. Media can also be referenced by an external URL or by a file in your own S3-compatible bucket, which changes who holds the bytes and who controls their lifecycle.
Teams usually need this as soon as traces include user-uploaded documents, screenshots of an interface, scanned forms, or voice input that is transcribed or passed to a model. Without a media bucket, large base64 payloads would otherwise be carried inside trace records, which makes the trace store grow quickly and makes attachments harder to review on their own. Before go-live, confirm with your platform team which bucket will hold attachments, who can read it, how it is encrypted, and whether it sits in the same region and account as the rest of the deployment. Those answers feed directly into your data classification and retention decisions.
Attachment storage does not change how Langfuse models traces, scores or prompts, and it does not remove the need to mask personal data in the content itself. An image of a customer's identity document is still personal data even when it sits in a separate bucket, so the masking and retention decisions described elsewhere in this guide still apply. Plan for the media bucket as a second data store alongside PostgreSQL and ClickHouse, with its own access policy, encryption and backup approach, and confirm each of these with your storage team before the first pilot trace is sent.
How an SDK moves a media attachment from a trace to the bucket
The flow starts in the application, where the Langfuse SDK finds a base64 data URI in a multi-modal payload and pulls it out of the trace body. The SDK asks Langfuse Web for a short-lived pre-signed URL, then uploads the file straight to the media bucket, so the bytes never pass through Langfuse. The trace keeps only a reference, while the Langfuse Worker and the metadata stores handle the rest. Check that the bucket accepts uploads from application hosts, because the trust boundary sits between the application and the bucket.
Media moves directly from the SDK to the bucket, while the trace stores only a reference.
Choosing between SDK upload, external URL and your own S3 bucket
With the default path, the Langfuse SDK finds base64 data URIs in a multi-modal payload, uploads the bytes to object storage and links the resulting file to the trace. In a self-hosted deployment, that storage is the bucket you configure through the LANGFUSE_S3_MEDIA_UPLOAD_* variables. Langfuse issues short-lived pre-signed URLs so the SDK can upload directly, so your application never needs permanent write credentials for the bucket. The bytes stay in infrastructure you run, but Langfuse manages their lifecycle.
- Who controls the bytes: Your organization, because the bucket sits in your account, data center or air-gapped network.
- Access: Viewing a trace requires Langfuse access to the file, so project roles in Langfuse become the practical gate.
- Retention: Deleting a trace or running retention does not guarantee the media object is removed in the same way, so confirm the deletion behavior for media before relying on it.
- Growth: Every base64 image or audio clip is stored in full, so storage grows with media volume, not with trace count.
- Credentials: The Langfuse services need bucket credentials, which should be scoped to the media prefix and rotated under your normal secret process.
Confirm in the multi-modality and blob storage docs which variables apply to your version and how media is removed when traces expire.
An external URL reference records a link to a file hosted elsewhere instead of copying the bytes into Langfuse. Nothing is uploaded to your media bucket, so storage growth on your side stays small. The trade-off is that the file's availability, access rules and retention are set by whoever hosts it, and Langfuse can only show what that host still serves.
- Who controls the bytes: The host of the URL, which may be a third-party service, a CDN or a partner system.
- Access: Anyone who can reach the URL can open the media, and links may be public, signed or session-bound depending on the host.
- Retention: The file can change or disappear without any change in Langfuse, which breaks the trace's evidence value.
- Data exposure: Sending a URL to a third party can expose the existence of a file and its path, even when the content is protected.
- Network path: Viewers need network access to the host, so private or restricted hosts may fail silently in the UI.
Before using this route for regulated data, confirm with the host how its links are signed, how long they last and whether the host keeps an audit trail of access.
A third route is to store the files in an S3-compatible bucket that your organization owns and reference them from the trace. This keeps the bytes under your bucket policies, encryption settings and backup regime, while Langfuse holds only the reference. Several teams choose this route because the media can follow the same lifecycle rules as their other business data.
- Who controls the bytes: Your organization, under the bucket policies, key management and backup routines you already run.
- Access: Access is governed by bucket policies and IAM roles, separate from Langfuse project roles, so both layers must be reviewed.
- Retention: Lifecycle rules on your bucket decide how long files exist, and Langfuse does not control them, so a deleted object may leave a trace reference that no longer resolves.
- Integrity: Changes to the object after upload are not tracked by Langfuse, so consider versioning and object locks if evidence matters.
- Cost components: You pay for storage, requests and egress in your own account, which recurs with volume.
Confirm with the multi-modality documentation how the SDK references existing objects, which URI or key format it expects and what the UI shows when a reference breaks.
The right route depends on who must hold the bytes, how long they must exist and who may view them. Mixed approaches are common: a team may upload operational screenshots through the SDK, reference partner files by URL and keep regulated documents in its own bucket. Deciding per data class, rather than per project, makes the access review easier to explain to auditors.
- Data classification: Sort media into public, internal and regulated categories before choosing a route.
- Retention alignment: Match each route's deletion behavior to the trace retention window you set.
- Access model: Map who can view media through Langfuse roles and who can read the bucket directly.
- Storage growth: Estimate media volume per environment with your own sample traces, because the docs do not give a general figure.
- Vendor support: The MinIO community server is archived and distributed as source only, so confirm the storage product, its license obligations and support path before standardizing on it.
Ask the vendor for written confirmation of deletion behavior for each route in the version you plan to run.
Media upload bucket settings and when each fits
This table lists the settings that connect self-hosted Langfuse to the bucket holding multi-modal attachments, under the LANGFUSE_S3_MEDIA_UPLOAD_ variable prefix. Read each row as a decision: the middle column describes the common single-cloud setup, and the last column names the condition that justifies a change. Confirm the exact variable names, endpoint, region, path-style and credential options in the blob storage documentation before deployment.
| Setting | What it controls | When the default fits | When to change it |
|---|---|---|---|
| Dedicated media bucket | The bucket where SDK-uploaded images, audio and files are stored, separate from other Langfuse data | A new bucket in the same cloud account and region as the Langfuse deployment | Your policy requires a different account, region or retention and encryption setup for attachments |
| Endpoint | The S3 API address Langfuse uses to generate pre-signed upload URLs | The provider's standard S3 endpoint for your chosen cloud region | You run an S3-compatible store such as Ceph or another self-managed service |
| Region | The region the bucket is created in and signed against | The same region as the Langfuse web and worker containers | The bucket must sit in a specific jurisdiction or the store does not use regions the way AWS does |
| Path-style addressing | Whether the bucket name is placed in the URL path or the hostname | Managed AWS S3 with standard hostname addressing | Your S3-compatible store requires path-style requests, which many self-hosted stores do |
| Credentials | The access key pair or workload identity Langfuse uses to sign uploads and reads | A dedicated service identity limited to the media bucket | Your security standard prohibits static keys and requires IAM roles or workload identity |
| Client reachability | Whether SDK clients can reach the bucket endpoint that the pre-signed URLs point to | Applications run inside the network that can reach the bucket directly | Applications run outside that network, so the endpoint needs a route, a proxy or a public address |
Setting up the media bucket and verifying an upload
This sequence takes a self-hosted Langfuse from no attachment storage to a verified multi-modal trace, with the media object stored in a bucket your organization operates. Each step ends with a check so that a failure is found at the step where it occurs.
Confirm the object storage target
Before creating anything, confirm with your storage team which S3-compatible service will hold the media, where it runs, and who holds its access keys. The blob storage configuration in the Langfuse docs covers the S3-compatible options, and your own environment decides which one fits. Check that the endpoint is reachable from the Langfuse Web and Worker containers, not only from your workstation. Done when the team has a written endpoint, region and owner for the storage service.
Provision a dedicated media bucket
Create a bucket used only for Langfuse multi-modal attachments, separate from the bucket used for scheduled exports or other Langfuse data. Keep it private, with no public read access, because Langfuse serves media through short-lived links rather than open URLs. Record the bucket name, region and endpoint so they can be entered into configuration without guessing. Done when an authenticated list or write test against the empty bucket succeeds from the network segment where Langfuse runs.
Create a scoped access key for the bucket
Create a storage access key that can read and write objects in the media bucket and nothing else. Store it in your secrets manager and inject it into the Langfuse Web and Worker containers, following your own secret handling standards. Avoid reusing root or administrator credentials from the storage platform. Done when a test write and delete using that key succeeds and the same key is refused on a different bucket.
Set the media upload variables on web and worker
Set the LANGFUSE_S3_MEDIA_UPLOAD_* variables on both the Langfuse Web and Langfuse Worker deployments, using the same bucket name, endpoint, region and credentials on each. Confirm the exact variable names against the multi-modality and blob storage docs for your Langfuse version. Restart or roll the containers so the new values load, and check the startup logs for storage errors. Done when both containers are running with the variables present and the logs show no bucket connection errors.
Confirm pre-signed URL generation
Request an upload from the Langfuse API or the UI path that issues media upload URLs, and confirm that Langfuse returns a short-lived pre-signed URL pointing at your bucket endpoint. If the URL points at an internal hostname that the SDK client cannot resolve, fix the endpoint setting before testing further. Note that the SDK must reach that host too, so test from the machine that will run your application. Done when a pre-signed URL is returned and a direct PUT of a small test file to it succeeds.
Send a test trace with an image and a file
From a non-production application or script, send one trace using the Langfuse SDK that includes an image and a non-image file as base64 data URIs in the input or output. Use a project and environment reserved for testing so that the verification data is easy to find and remove later. The SDK extracts the data URIs, uploads them and links them to the trace. Done when the SDK call returns without error and the trace appears in the project.
Check the object and the trace view
List the media bucket and confirm that one object exists for the image and one for the file, with keys that match the references in the trace. Open the trace in the Langfuse UI and confirm that the image renders and the file can be opened. If an upload failed, check the Worker logs and the bucket access log for denied requests or signature mismatches, which usually point to wrong credentials, a wrong region or a blocked endpoint. Done when both objects are in the bucket and both attachments display or open in the trace.
Record the checkpoint for failed uploads
Document what a failed upload looks like on your platform: the SDK error, the Worker log line and the storage response you observed during testing. Then record the permissions the access key needs, so a later credential rotation can be checked against this list. Remove the test trace and objects if your policy requires it. Done when the runbook has the test results, the owner of the storage key and the rollback steps for the variables.
How attachment volume drives storage growth
Media size, not trace count, drives growth in the attachment bucket. A trace with a small text prompt adds almost nothing to blob storage, while a single trace carrying a high-resolution image or an audio recording can add far more. Base64 payloads also mislead when you estimate from request logs: the encoded text in the request is roughly a third larger than the binary object the SDK stores, and the stored object is what occupies your bucket. Estimates built from application traffic in bytes will therefore overstate storage if they use the encoded size, and understate it if they ignore media that repeats across traces.
Four factors set the growth curve. The first is media per trace, meaning how many attachments a typical request carries and how often a workflow re-sends the same file. The second is sampling, since the share of traces you send to Langfuse determines how many of those attachments ever reach the bucket (see the sampling topic for the settings involved). The third is retention: a bucket object is only removed when the trace that points to it is deleted, so a long trace retention window keeps media for as long as the traces do. The fourth is the mix of modalities, because audio and video usually weigh more per item than text-adjacent files. The page does not give a sizing figure for your workload, and none should be taken from it.
Measure before you commit to a bucket size. Capture a representative sample of real traffic over a period that includes your peak usage, record the stored object sizes per modality and the number of media items per trace, and project that across your planned sampling rate and retention window. Confirm the lifecycle and deletion behavior of your object storage with your platform team, and agree the retention period, sampling rate and bucket capacity together, because changing one without the others is the usual reason attachment storage grows faster than planned.
Security and operational considerations for attachment storage
Attachments move sensitive content out of the trace database and into a separate object store, which creates its own access, expiry, encryption and recovery decisions. The cards below cover the checks that keep that bucket aligned with the rest of your Langfuse deployment.
Bucket access and credential scope
Create a dedicated bucket for LANGFUSE_S3_MEDIA_UPLOAD_* and give its credentials write and read access to that bucket only. Do not reuse credentials that also reach other application data, backups or the export bucket. Confirm with your storage team how the access policy is written and reviewed, because a broad key lets anyone with it read every attachment ever uploaded. Record who owns the key and how it rotates.
Pre-signed URL lifetime and requesters
Langfuse generates short-lived pre-signed URLs so SDKs can upload media directly to the bucket. Anyone who can obtain such a URL can write to the bucket path it names for the life of the link, so treat the URLs as credentials. Confirm the lifetime Langfuse applies in your version, and check that only authenticated SDK clients with valid project keys can request them through your network controls.
Sensitive content in images and audio
Client-side masking runs on text fields in the SDK, so it does not reliably catch faces, documents photographed in an image, names spoken in audio or account numbers written on a scanned form. Decide before rollout which media types your users may send, and whether a human or a separate review step must approve them. Server-side ingestion masking is an Enterprise feature and is not a substitute for that decision.
Encryption at rest in the bucket
Langfuse stores attachments in the bucket you provide, so encryption at rest depends on that storage platform. Confirm that server-side encryption is enabled on the bucket, decide who manages the keys, and confirm that the same setting applies to replicas and any archive tier. Keep the encryption key recovery procedure with the backup runbook so restored media stays readable.
Media bucket backups
Back up the media bucket on its own schedule. ClickHouse and PostgreSQL backups hold trace metadata and links, not the file contents, so a restore of those stores alone leaves broken attachment references. Confirm that the storage platform's versioning or replication covers accidental deletes, and test a restore that brings back both the database and matching objects.
Deletion aligned with retention
Retention cleanup removes trace records, but a media object lives in a separate bucket and is not deleted by the same action unless your process removes it. Verify in a test project how your retention window affects both stores, and decide whether you need a scheduled job that deletes orphaned objects. Confirm the behavior with Langfuse for your version before you rely on it for deletion requests.
Multi-modality docsChoosing S3-compatible storage when MinIO is no longer the default
The MinIO community repositories are archived, so a self-hosted Langfuse that points its media bucket at MinIO should not assume that MinIO will receive fixes. The minio/minio, minio/operator and minio/mc repositories are read-only on GitHub. The community server is released under the GNU AGPL v3.0, and its README says that any commercial or proprietary use must be checked against AGPLv3 obligations. The community edition is now distributed as source code only, legacy binaries will not receive updates, and the last tagged community release is RELEASE.2025-10-15T17-29-55Z, published on October 16, 2025. Support for the community software is best effort through GitHub and Slack. SLA-backed support is available only through the vendor's commercial edition.
The vendor points to two alternatives: AIStor Free, a standalone edition under a free license, and AIStor Enterprise, a distributed edition with commercial support. Before you choose either, confirm with the vendor which license applies to your use, whether your intended deployment (standalone or distributed, on Kubernetes or on VMs) is covered, what release cadence and security patch commitments apply, and what support terms you get. Ask for these answers in writing, because the AGPL obligations depend on how you modify and distribute the software. The Langfuse media bucket only needs the S3 API, so the choice is about your operating obligations, not about feature fit.
Many organizations already run storage that Langfuse can use without a new product. Ceph exposes an S3-compatible object gateway, and cloud object storage such as Amazon S3 or equivalent services in your provider account is often already governed by your backup, encryption and access policies. Check that the bucket named in LANGFUSE_S3_MEDIA_UPLOAD_BUCKET can be reached from the web and worker containers, that the access key is scoped to that bucket, and that your storage team has a restore procedure for it. Whichever option you select, plan its backups separately, since attachments are not recoverable from ClickHouse or PostgreSQL.
Limits to confirm in your environment before rollout
Multi-modal tracing depends on details that vary by Langfuse release, SDK version and storage product. The cards below list the limits to confirm in a test environment before production traffic carries images, audio or files, since each one changes how the bucket, the SDK and your retention plan are configured.
Supported file types and sizes
Confirm which MIME types and maximum file sizes your Langfuse release and SDK accept for images, audio and documents. Uploads that exceed a limit or use an unsupported type can be dropped or stored as plain text, so the trace may look complete while the media is missing. Send one sample of each media type you expect in production and check that it renders in the trace view before you rely on it.
Multi-modality docsBehavior when the bucket is unreachable
Find out what the SDK and the Langfuse Web container do when the media bucket rejects uploads or cannot be reached, including whether the trace is still ingested without its attachment. Because Langfuse issues short-lived pre-signed URLs for SDK uploads, a misconfigured endpoint or expired credentials can fail silently for some clients. Test this failure on purpose and decide whether your teams accept a text-only trace in that case.
SDK version requirements for media
Check the minimum SDK version that extracts base64 data URIs and uploads them to object storage in your language and framework. Older SDKs may send the payload inline, which inflates trace size in ClickHouse without any warning. Pin SDK versions in your build and record which services send media, so an unmanaged client does not write large payloads into your data store.
Availability of referenced external URLs
Media referenced by external URL or by a file in your own S3 bucket is only as durable as the source. Confirm who owns the source, whether links are signed or expire, and what happens to older traces when a file is moved or deleted. Treat referenced media as outside Langfuse's retention and backup scope unless your own process copies it, and document that boundary for reviewers.
Compatibility of the storage product with your release
Confirm that the S3-compatible product you chose is supported with your current Langfuse release and that the bucket settings match the LANGFUSE_S3_MEDIA_UPLOAD_* variables in that release. Storage projects change license, distribution and maintenance status, so verify the current state of the product before you commit. Pin the tested versions of Langfuse, storage and SDKs together and retest after each upgrade.
Blob storage docsQuestions teams ask before adding multi-modal tracing
What does adding multi-modal tracing cost, and what drives the price?
The cost is mostly the engineering time to configure the blob storage bucket, wire the LANGFUSE_S3_MEDIA_UPLOAD_* variables into the deployment, test uploads from each SDK and set up storage monitoring. Some of it is one-time work (bucket design, credentials, network paths, test plan) and some recurs (storage capacity, bucket backups, upgrades that touch the blob configuration). The main drivers are how many applications send media, how large and how frequent the attachments are, whether you run your own object store or use an existing bucket, and how many environments need separate buckets. Ask any partner for a quote built from a written scope that lists these items separately, so you can see what is one-time and what you will keep paying for.
How long does setup usually take, and what sets the duration?
Setup time depends less on the Langfuse configuration itself than on the surrounding decisions: whether the blob storage already exists, how quickly credentials and network routes can be approved, and how many SDK paths need testing. A team with a ready S3-compatible bucket and a working self-hosted Langfuse can often finish the variable configuration and an end-to-end upload test in a short working cycle. Teams that must first provision object storage, agree on retention for media, or review data handling for images and audio should expect the schedule to follow those approvals. Ask for a timeline that names each dependency and its owner.
What must our team provide before the work starts?
Plan to provide four things before configuration begins:
- An S3-compatible bucket dedicated to multi-modal uploads, with a region and endpoint the Langfuse containers can reach
- Access credentials with rights limited to that bucket, stored in your secrets management system
- Network paths from the Langfuse web and worker containers, and from the applications that send traces, to the storage endpoint
- Representative test content, such as sample images, audio clips and files in the formats your applications produce, so uploads can be verified before production use
If you plan to reference media in a bucket you already own, also confirm read permissions and how those objects are created and kept.
Can one internal engineer set this up alone?
Often yes for a single application in a team that already runs self-hosted Langfuse, because the core work is a set of environment variables, a bucket and a test script. The risk grows with the number of SDKs, the number of environments, and the need for secure credential handling and network review. Someone must also own the bucket lifecycle, backups and the upgrade checks, which can outlast the first deployment. Check whether your engineer has experience with object storage permissions and with the Langfuse deployment itself, and agree who covers the work during absence. A partner can take the build as a fixed-scope piece and hand over documentation so that your team operates it afterward.
Does DeployOpen take on the storage growth planning and backups?
Storage growth planning is part of the scope we agree in writing, and it depends on your sizing inputs: attachment types, average and peak sizes, trace volume and retention periods. We can document how those inputs feed the bucket capacity plan and the backup approach for the object store, and we can set up the verification steps. We do not guarantee storage outcomes, and we do not issue audit reports on your data handling. Ask us to list in the scope which backup and capacity tasks are included and which remain with your storage team.
How does media storage grow, and what should we plan for?
Storage growth follows the volume of attachments, not the trace count alone, so a single image-heavy workflow can add more data than many text-only traces. Plan by measuring a sample of real traffic over a representative period, then projecting it against your retention windows. Remember that media in the bucket can outlive the trace metadata if cleanup is not aligned, and that a short-lived pre-signed URL is only used during upload, so it does not limit how long stored objects remain. Confirm with your storage vendor how capacity, replication and backups scale, and plan a regular review of bucket size against the forecast.
Is the MinIO community edition a safe default for the bucket?
Be careful here. The minio/minio README says the repository is no longer maintained and points to AIStor Free and AIStor Enterprise as alternatives. The community server is under the GNU AGPL v3.0, and its README says commercial or proprietary use must be validated against AGPLv3 obligations. Its releases are source-only, and the last tagged community release is RELEASE.2025-10-15T17-29-55Z, published October 16, 2025. Support for the community software is best effort. Before choosing it, check the current status of the project with the vendor, confirm your license position with counsel, and compare it with other S3-compatible options your organization supports.
How DeployOpen scopes and delivers media storage for Langfuse
DeployOpen plans, builds, tests and documents the object storage path for multi-modal traces in self-hosted Langfuse, inside your own infrastructure. Work is agreed as a fixed-scope engagement, with the bucket, permissions, sizing and backup decisions written down before any configuration starts.
How we scope
- Inventory which SDKs, frameworks and payload types will send images, audio and files to your Langfuse instance
- Decide whether media goes to the LANGFUSE_S3_MEDIA_UPLOAD bucket or is referenced in your own S3-compatible bucket
- Agree the growth estimate, retention approach and who owns the media bucket in the written scope
How we build
- Configure the LANGFUSE_S3_MEDIA_UPLOAD_* variables and confirm pre-signed upload URLs work from your application network
- Restrict bucket policies and credentials so only the Langfuse services and approved clients can write or read media
- Test base64 extraction, external URL references and large file uploads against a non-production instance before go-live
How we hand over
- Document the bucket layout, configuration keys, credential rotation steps and the network paths the uploads depend on
- Provide a storage growth worksheet tied to your observed trace volume so capacity reviews have a baseline
- Record the backup approach for the media bucket and the restore test performed during the engagement
How we support
- Ongoing support and continuous review of the media bucket are available as a retainer after handover
- Retainers can cover storage capacity reviews, Langfuse upgrades that touch media settings and access changes
- Ask for the support boundaries, response expectations and change process to be written into the retainer scope

