The Community is undergoing a major upgrade. Find out more, ask us questions or share your thoughts here.
Forum Discussion
lr00429
3 years agoExplorer | Level 4
Content Hash Searchv2
Hello,
I am working on an app that allows users to upload files using the dropbox api. There is a requirement to check duplicates per folder for this I am searching for the file name that they are uploading for the folder that they are uploading to, if I get a match I can create the content hash and comparing to what I get from search. However, I noticed that SearchV2 returns the same content hash no matter what the file is. SearchV1 does not have this issue. I am currently calling get metadata on match of name because I do not want to user searchV1 but would love to get this fixed so I don't have to make an additional callout.
- Greg-DBDropbox Staff
Thanks for the report. I just tried this out though, and I'm not seeing the behavior you describe. Can you share the particular call and output you're making so we can take a look? Be sure to redact the access token and any private information though. Feel free to open an API ticket if you'd prefer to share privately. Thanks in advance!
- lr00429Explorer | Level 4
Hey Greg,
Sure thing, here is a few screenshots. 1. being the content_hash example file (https://www.dropbox.com/developers/reference/content-hash) showing the correct hash in searchV1. Then a screenshot of search V2 with the same file showing a different hash. Lastly, a completely different installation file showing the same hash using searchv2. We experience this with all searchV2 queries where we get the same hash for all files.
Thanks!
- Greg-DBDropbox Staff
Thanks, that's helpful. We'll look into it and I'll follow up here once I have any update on this for you.
- Greg-DBDropbox Staff
This should be fixed now. Thanks again for the report!
About Discuss Dropbox Developer & API
795 PostsLatest Activity: 3 days ago
If you need more help you can view your support options (expected response time for an email or ticket is 24 hours), or contact us on X or Facebook.
For more info on available support options for your Dropbox plan, see this article.
If you found the answer to your question in this Community thread, please 'like' the post to say thanks and to let us know it was useful!