IQSS / IQSS/dataverse-frontend

Upload File Page - does not handle duplicate files correctly

Open
#584 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

GREI Re-arch SPA: File Upload Page
Dominant language
TypeScript
Stars
31
Forks
26
Avg merge
4d 13h
Merged PRs (30d)
4

Description

What steps does it take to reproduce the issue?
Upload a file to a dataset, and then within the same Upload form, try to upload the file again. The UI should present a warning that the file is a duplicate, then if the user allows the upload, then the second file should be renamed. For example -
JSF Duplicate File Upload

  • When does this issue occur?
    Uploading a duplicate file to a dataset

  • Which page(s) does it occur on?
    Upload Files Page

  • What happens?
    The second upload fails silently, and doesn't get added to the form.

  • To whom does it occur (all users, curators, superusers)?
    all users

  • What did you expect to happen?
    The page should behave the same as the JSF.

Which version of Dataverse Frontend are you using?

Any related open or closed issues to this bug report?

Screenshots:
Upload Dataset form with duplicate files, in JSF-
Screenshot 2025-01-14 at 1 28 08 PM

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start on the Upload Files Page and reproduce the reported sequence: upload a file, then upload the same file again within the same form. Compare the result with the expected JSF behavior shown in the linked example and screenshot; done means the duplicate is warned about and, when allowed, appears in the form under a renamed filename.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
frontend
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.