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

MD5 hash for gridfs is deprecated #891

Open
Kwentar opened this issue Nov 7, 2022 · 0 comments
Open

MD5 hash for gridfs is deprecated #891

Kwentar opened this issue Nov 7, 2022 · 0 comments

Comments

@Kwentar
Copy link

Kwentar commented Nov 7, 2022

_id = self.fs.put(f, filename=abs_path)

Looks like md5 hash doesn't work as earlier in gridfs, and all files will be added without checking md5 (file in file = self.fs.find_one({"filename": abs_path, "md5": md5}) always None), I fixed it like _id = self.fs.put(f, filename=abs_path, md5=md5) but not sure this is the correct one

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