Skip to content

Conversation

@JammingBen
Copy link
Contributor

@JammingBen JammingBen commented Sep 29, 2025

Uploading the same file multiple times while the upload is still running causes issues because Uppy can not distinguish those files. Hence prevent this behavior.

Also updates the file list immediately after a top-level folder has been created during upload so the user gets direct feedback about their upload.

fixes #1263

@JammingBen JammingBen self-assigned this Sep 29, 2025
Copilot AI review requested due to automatic review settings September 29, 2025 11:15
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR fixes an issue where Uppy wouldn't recognize files as new when uploading the same file multiple times by making upload IDs unique with timestamps. It also improves user experience by immediately updating the file list when top-level folders are created during upload.

  • Appends a timestamp to generated upload IDs to ensure uniqueness for repeated file uploads
  • Adds immediate file list updates for top-level folder creation to provide instant user feedback

Reviewed Changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.

File Description
packages/web-pkg/src/services/uppy/uppyService.ts Modifies upload ID generation to include timestamp for uniqueness
packages/web-app-files/src/HandleUpload.ts Adds immediate file list update for top-level folder creation

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

@JammingBen JammingBen force-pushed the fix/upload-same-file-multiple-times branch 5 times, most recently from ac6bef0 to 7c6639c Compare September 29, 2025 11:19
@JammingBen JammingBen marked this pull request as draft September 29, 2025 11:36
@JammingBen JammingBen force-pushed the fix/upload-same-file-multiple-times branch from 7c6639c to 1684aae Compare September 29, 2025 12:28
@JammingBen JammingBen changed the title fix: uploading a file multiple times fix: prevent uploading the same file again during upload Sep 29, 2025
@JammingBen JammingBen force-pushed the fix/upload-same-file-multiple-times branch from 1684aae to 8590601 Compare September 29, 2025 12:29
@JammingBen JammingBen marked this pull request as ready for review September 29, 2025 12:47
Uploading the same file multiple times while the upload is still running causes issues because Uppy can not distinguish those files. Hence prevent this behavior.

Also updates the file list immediately after a top-level folder has been created during upload so the user gets direct feedback about their upload. This comes in handy when uploading the same folder multiple times.
@JammingBen JammingBen force-pushed the fix/upload-same-file-multiple-times branch from 8277c06 to e64b08e Compare September 29, 2025 14:16
Copy link
Contributor

@kulmann kulmann left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nice 🥇

@JammingBen JammingBen merged commit 7cba65e into main Oct 7, 2025
28 checks passed
@JammingBen JammingBen deleted the fix/upload-same-file-multiple-times branch October 7, 2025 13:41
@openclouders openclouders mentioned this pull request Oct 7, 2025
1 task
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug] Upload same folder multiple times fails

3 participants