-
Notifications
You must be signed in to change notification settings - Fork 25
fix: prevent uploading the same file again during upload #1277
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
There was a problem hiding this 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.
ac6bef0 to
7c6639c
Compare
7c6639c to
1684aae
Compare
1684aae to
8590601
Compare
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.
8277c06 to
e64b08e
Compare
kulmann
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nice 🥇
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