File input: Users cannot add or replace files after initial upload in interaction dialog
Nobody has claimed this yet.
Assessment
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Newbie friendliness
- 76/100
Research direction
Start in InteractionsInputDialog.razor by tracing the conditional rendering around the FluentButton and the FluentInputFile AnchorId, then inspect how localItem and input names are available for a stable ID. Done means the browse button remains beside uploaded files, supports adding or replacing selections, and produces unique anchor IDs for multiple inputs.
Written by the indexing model from the issue text.
Description
Context
From review feedback on #14882.
Problem
In the InteractionsInputDialog.razor, the file upload browse button (FluentButton) is only rendered when there are no uploaded files. Once a file is successfully uploaded, the button is removed from the DOM and replaced with the file list display.
Because FluentInputFile triggers the file picker via AnchorId pointing at the button, once the button is gone:
- Users cannot add more files (for multi-file inputs)
- Users cannot replace an incorrect file selection
- The only option is to cancel the entire dialog and start over
Additionally, the button/anchor ID is derived from _elementRefs[localItem]?.Id, which can be null early in rendering, producing an ID like "-FileUploadButton". With multiple file inputs, this risks duplicate IDs and incorrect label/anchor associations.
Expected behavior
- The browse button should remain visible alongside the uploaded file list so users can add/replace files
- Use a deterministic ID based on the input name (or similar stable key) rather than element ref IDs that may be null
References
- Dominant language
- C#
- Stars
- 6.3k
- Forks
- 992
- Avg merge
- 2d 16h
- Merged PRs (30d)
- 176
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from microsoft/aspire
-
ci-failure-cause test-failure
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
-
Difficulty 1/5 Under an hour Newbie friendliness 92/100
-
agentic-workflows needs-area-label
Difficulty 2/5 1-3 hours Newbie friendliness 62/100
-
area-app-model
Difficulty 2/5 1-3 hours Newbie friendliness 84/100
-
area-integrations triage:bot-seen
Difficulty 2/5 1-3 hours Newbie friendliness 84/100
All issues in microsoft/aspire
Similar issues
-
type/automation type/tech-debt
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
-
t/bug
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
-
area:auth FE mvp P3
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
klasolsson81/jobbliggaren#1788 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
OrchardCMS/OrchardCore#19919 · 2 comments ·