Files
romm/backend/utils
Georges-Antoine Assi def9258636 fix(backend): serve PDF/Markdown manuals inline so the viewer can render them
Uploaded manual files (RomFile with category="manual") were served from the
content endpoint as application/octet-stream + attachment, so the in-page
manual viewer showed a blank area while nav buttons and download still worked.

Include .pdf and .md in is_allowed_media_file (with explicit MIME overrides)
so they are served inline, and set X-Content-Type-Options: nosniff on inline
responses so a Markdown manual can't be sniffed into HTML.

Fixes #3712

Generated-By: PostHog Code
Task-Id: 73be371c-908a-4f9f-9748-7ddba2df71e2
2026-07-09 19:38:16 -04:00
..
2025-09-04 11:17:00 -03:00
2026-06-21 17:42:25 -04:00
2026-05-30 20:26:29 -04:00
2026-06-23 22:38:43 -04:00
2026-06-28 21:48:50 -04:00
2026-06-07 08:29:49 -04:00
2026-07-06 22:17:56 -04:00