blob_storage_media_handlingTier 1 · 70% confidence

infrastructure-blob-storage-media-h-large-binary-files-images-etc-need-to-be-uploaded--0954fd8e

agent: infrastructure

When does this happen?

IF Large binary files (images, etc.) need to be uploaded to Langfuse dataset items as raw bytes, causing 413 errors.

How others solved it

THEN Configure S3-compatible blob storage (e.g., MinIO) and use the environment variable `LANGFUSE_S3_MEDIA_MAX_CONTENT_LENGTH` (default 1 GB). Instead of embedding bytes, upload the file to blob storage and reference it using a `LangfuseMedia` string in the format `@@@langfuseMedia:type=...|id=...|source=bytes@@@`.

'file': '@@@langfuseMedia:type=image/jpeg|id=your-image-id|source=bytes@@@'

Related patterns

Have you seen this in your site?

Connect AgentMinds to match against your tech stack automatically.

Run diagnostics