Skip to content

Let users download uploaded knowledge files - #188

Merged
MikeAlhayek merged 1 commit into
mainfrom
claude/knowledge-file-download-dd2315
Sep 14, 2026
Merged

MikeAlhayek merged 1 commit into
mainfrom
claude/knowledge-file-download-dd2315

Conversation

@MikeAlhayek

Copy link
Copy Markdown
Member

Files attached to an AI Profile or a Chat Interaction were stored on the server with no way to retrieve the original after uploading. Each attached document now shows a download button beside its remove button in both the MVC and Blazor hosts, served by the existing
ai/documents/{documentId}/download endpoint.

The endpoint previously authorized only chat-interaction and chat-session documents; it now also authorizes AI Profile documents through the same resource-based AIChatDocumentOperations.ManageDocuments requirement. The sample hosts register a SampleAIProfileDocumentAuthorizationHandler that grants it to administrators, matching the existing sample handlers.

The document action buttons are pinned to the left of the file name so they stay visible when filenames are long, and the remove button is icon-only.

Files attached to an AI Profile or a Chat Interaction were stored on the
server with no way to retrieve the original after uploading. Each attached
document now shows a download button beside its remove button in both the
MVC and Blazor hosts, served by the existing
ai/documents/{documentId}/download endpoint.

The endpoint previously authorized only chat-interaction and chat-session
documents; it now also authorizes AI Profile documents through the same
resource-based AIChatDocumentOperations.ManageDocuments requirement. The
sample hosts register a SampleAIProfileDocumentAuthorizationHandler that
grants it to administrators, matching the existing sample handlers.

The document action buttons are pinned to the left of the file name so they
stay visible when filenames are long, and the remove button is icon-only.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
@MikeAlhayek
MikeAlhayek merged commit 2d66d94 into main Sep 14, 2026
10 checks passed
@MikeAlhayek
MikeAlhayek deleted the claude/knowledge-file-download-dd2315 branch September 14, 2026 21:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant