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
Hi Gene,
Thank for your patience,
We have included the fix for the issue "AI AssistView duplicates previously attached file when selecting additional attachments without SaveUrl" with our package version 34.2.4. Please upgrade to the latest package version and let us know if you need any further assistance.
Release Notes: Link
Sample: Link
Root cause analysis:
The issue occurs when the SaveUrl property is not configured in the AttachmentSettings. In this scenario, previously selected files remain in the internal attachment collection and are added again when additional files are selected, causing duplicate attachments to appear in the UI. Aligning the behavior, if the SaveUrl is not configured the attachments will not be added now and file duplication will be prevented now the duplication issue will be resolved.
Regards,
Mohamed Saifudeen
- 2 Replies
- 3 Participants
-
GE Gene
- Aug 3, 2026 08:51 PM UTC
- Aug 20, 2026 08:44 AM UTC