Skip to content

Allow re-uploading the same attachment#491

Merged
MaxEriksson2000 merged 2 commits into
developfrom
fix/attachment-reselect-upload
Jun 12, 2026
Merged

Allow re-uploading the same attachment#491
MaxEriksson2000 merged 2 commits into
developfrom
fix/attachment-reselect-upload

Conversation

@MaxEriksson2000

Copy link
Copy Markdown
Collaborator

Summary

  • reset the file input after its files have been queued
  • add a browser component regression test that selects the same file twice

Root cause

Browsers do not emit another change event when a file input retains the same value and the user selects that file again. The second upload therefore appeared to do nothing.

User impact

A user can remove or retry an attachment and immediately choose the same local file again. Existing validation and toast behavior is unchanged.

Validation

  • browser component regression test passed
  • Svelte check passed with 0 errors and 0 warnings
  • frontend format and lint hooks passed

@github-actions

github-actions Bot commented Jun 12, 2026

Copy link
Copy Markdown

🧹 Dead-code & unused-dependency report

Advisory — never gates the PR. Whole-repo scan, so some findings may be false positives (dynamic dispatch, framework hooks, runtime-resolved imports). Triage before removing.

No dead code or unused dependencies detected.

@MaxEriksson2000 MaxEriksson2000 marked this pull request as ready for review June 12, 2026 19:24
@github-actions

github-actions Bot commented Jun 12, 2026

Copy link
Copy Markdown

📊 Patch coverage

Share of this PR's new/changed lines exercised by tests. Report-only — never gates the PR.

Area Changed Uncovered Coverage
Frontend 12 0 100%

…elect-upload

# Conflicts:
#	frontend/apps/web/src/lib/features/attachments/components/AttachmentUploadIconButton.svelte
@MaxEriksson2000 MaxEriksson2000 merged commit a11c602 into develop Jun 12, 2026
15 checks passed
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