Duplicate selections in the attachments window
On Windows, .NET 10, code:
<div style="height: 460px; max-width: 520px; border: 1px solid #ccc;"> <SfAIAssistView PromptRequested="OnPromptRequestedAsync" AttachmentSettings="new AssistViewAttachmentSettings { Enable = true }" /> </div> @code { private async Task OnPromptRequestedAsync(AssistViewPromptRequestedEventArgs args) { var attached = args.AttachedFiles ?? []; args.Response = $"Received {attached.Count} attachment(s)."; } }
I click on the paper clip to and add a file, it looks good:
I then click on the paper clip again and add a different file. But, instead of adding just that file, the attachment area shows a dup of the first attachment, 3 files total. I never selected the second file.
The same behavior is between conversation turns. If I add an attachment, submit my comment, get the reply, then click on the paper clip to attach another file for my next turn, the attachment from the previous turn is shown in the attachments UI.
The desired behavior is a common chat client behavior -- you attach a file, send it and it's gone from the UI. How do I achieve that?
Thanks for your help,
Evgueni
Hi Gene,
Sorry for the delay in getting back to you.
To enable attachment uploads in the AI AssistView, you need to configure the SaveUrl property in the AttachmentSettings. The SaveUrl specifies the server endpoint where the selected files will be uploaded. You can either use your own file upload service or the below hosted demo service provided by Syncfusion.
Code Snippet:
|
``` private AssistViewAttachmentSettings attachmentSettings = new() {
Enable = true, };
|
Sample: Link
However, the reported attachment duplication behavior is reproduced when the SaveUrl is not configured. After configuring valid SaveUrl endpoints, the issue is not replicated and the attachments are handled as expected.
Also, the files duplicated and retained in the attachment UI even when the SaveUrl is not configured. We have considered “Blazor AI AssistView duplicates previously attached file when selecting additional attachments without SaveUrl “ as a bug from our end and the fix will be included with our patch release scheduled by 18th August 2026.
You can track the status of this issue using
the feedback link below:
Feedback: Link
Disclaimer: “Inclusion of this solution in the weekly release may change due to other factors including but not limited to QA checks and works reprioritization.”
Please let us know if you need any further assistance.
Regards,
Indrajith
- 1 Reply
- 2 Participants
-
GE Gene
- Aug 3, 2026 08:51 PM UTC
- Aug 6, 2026 04:18 AM UTC