You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Files tab: 'Failed to load text content' for markdown files — content-disposition: attachment prevents inline rendering #784
The attachment disposition instructs the client to treat the response as a file download rather than displayable content. The frontend receives an HTTP 200 with a body, but the disposition causes it to fail to render the content inline — hence "Failed to load text content".
Fix
Change the Content-Disposition header on the file preview endpoint from:
Content-Disposition: attachment; filename="..."
to:
Content-Disposition: inline; filename="..."
This applies to all text-based file types served by the preview endpoint (.md, .txt, .yaml, .py, .ts, etc.).
Observed on
Instance: eu2 (Trinity v3a3e9a72)
File types confirmed affected: .md (markdown)
Likely affects all text file types given the header is set at the endpoint level
Expected Behaviour
Clicking a text file in the Files tab displays its content inline in the preview panel.
Activity
vybe commentedon May 11, 2026
/claim
github-actions commentedon May 11, 2026
Claimed by @vybe. Label
status-in-progressadded.Next steps:
feature/784-<short-slug>Fixes #784fix(files): use inline Content-Disposition on preview endpoint (#784) (…
vybe commentedon Jun 1, 2026
Shipped in v0.6.0 (released via #998).
fix(frontend): allow blob: in CSP for Files-tab preview (#1400) (#1403)