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

Generate resumableFileIdentifier based on a hash #18

Open
Vincouux opened this issue Jul 26, 2021 · 0 comments
Open

Generate resumableFileIdentifier based on a hash #18

Vincouux opened this issue Jul 26, 2021 · 0 comments

Comments

@Vincouux
Copy link

Problem:
Using UUID for file identifier is a nice approach, but that makes the main benefits of resumable.js useless (avoid uploading same chunk twice). For example, if you stop the upload and restart, it will generate a new UUID, which will be different from the previous for the same file, and start the upload from 0.

Solution:
Hash the content of the file with a given algorithm and use it as file identifier.

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

No branches or pull requests

1 participant