feat/file-viewer #17
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "feat/file-viewer"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
GET /api/documents/{id}/file streams the upload from RAG for the file viewer, forwarding Range and cache headers so recordings can seek. Every file gets nosniff and private caching; HTML, SVG and XML also get a sandboxing CSP, so an uploaded page cannot run scripts as whoever opens it. The workspace may come as ?workspace=, since a new tab or a player's src cannot send headers. PUT replaces an uploaded Markdown or text file, which RAG then indexes again. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>Pull request closed