Skip to content

Re-uploading the same file after deletion fails #446

@LogicLord-Liu

Description

@LogicLord-Liu

Describe the bug

When a user uploads a file successfully after a page refresh, everything works as expected. However, if the user clicks the "delete" button and then attempts to re-upload the exact same file (same name and content), the upload does not proceed—the file appears to be ignored or silently rejected by the system.

What happened?

  • Steps to Reproduce:
    • Refresh the page.
    • Upload a file (e.g., example.pdf) – upload succeeds.
    • Click the delete button to remove example.pdf.
    • Attempt to re-upload example.pdf again – upload fails.
  • Expected Behavior:
    After deleting a file, the system should allow re-uploading the same file as if it were a new upload.
  • Actual Behavior:
    The system blocks the re-upload of the same file after deletion, treating it as a duplicate or invalid submission.
  • Impact:
    • This issue blocks users from re-uploading the same file unless they refresh the entire page.
    • It's a poor user experience, especially in scenarios where a file was accidentally deleted and the user immediately wants to re-upload it.
    • May cause confusion or lead users to think the upload system is broken.
  • Suggested Fix (Optional):
    You might need to reset the file input or clear the internal file reference/cache when a file is deleted to allow re-uploading the same file.

System information

  • System:
    • OS: Windows 11 10.0.22631
    • CPU: (16) x64 13th Gen Intel(R) Core(TM) i5-13500H
      Memory: 3.58 GB / 15.73 GB
  • Browsers:
    • Chrome: (Version 140.0.7325.0 (Official Build) canary (64-bit))
    • Edge: Chromium (127.0.2651.74)
    • Internet Explorer: 11.0.22621.3527

Where did you encounter the bug?

Public app (enclosed.cc)

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions