Skip to content
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

Fix duplicate files #2275

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open

Fix duplicate files #2275

wants to merge 1 commit into from

Conversation

tinngo56
Copy link

@tinngo56 tinngo56 commented Dec 1, 2023

Regarding this issue, this fix addresses the problem of duplicate files being created when they are dragged and dropped into the dropzone. This behavior is not desired as the user will already have the file after dropping it into the dropzone and does not require duplicates. Additionally, since the same file may be used frequently, creating duplicates is unnecessary.

To prevent duplicate files from being added to the dropzone, we check for the presence of another file with the same name and size. This process ensures that only unique files are accepted. By conducting this check, we can maintain the integrity of the files and avoid any possible errors.

Validation: A local test HTML page was created to replicate the issue. With the applied fix, the error did not recur, confirming the effectiveness of the solution.

Looking forward to any feedback or questions about this implementation.

@tinngo56 tinngo56 changed the title This does not allow duplicate files to be 'dropped' in the dropzone Fix duplicate files Dec 1, 2023
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.

None yet

1 participant