We are aware of the issue with the badge emails resending to everyone, we apologise for the inconvenience - learn more here.
Forum Discussion
Tang
6 years agoExplorer | Level 4
Unique file id not really unique
Hi
I'm facing a problem regarding "unique" file id. I got 2 completely different files that have exactly the same id. What is the purpose of this "unique" id if it is not unique.
I have a business account.
In v2 API communication webpage available here it is clearly written:
Spoiler
File IDs
Developers have often asked us to support the notion of a file ID: a unique identifier for a file that remains constant even when the file is moved. We’re pleased to announce that API v2 includes this highly-requested feature. Developers can now use file IDs instead of paths to make sure their apps don’t lose track of a file when it’s moved by a user.
Why files API returns only one result while there are 2 files identified with specified id... I am skeptical about the reliability of the result of certain requests (see below)
I'm really confused because all my custom developments are based on this unique id.
This is what get_metadata request returns for the 2 files (I have plenty of examples):
{ ".tag": "file", "name": "5-ENTRAINEMENT IOB NIVEAU 1 non corrigé.pdf", "path_lower": "/dossier de l'équipe groupe valoriale/3-manuels de formations/1-iob 1/formation iobsp v1/travail a rendre/5-entrainement iob niveau 1 non corrigé.pdf", "path_display": "/Dossier de l'équipe GROUPE VALORIALE/3-manuels de formations/1-iob 1/FORMATION IOBSP V1/TRAVAIL A RENDRE/5-ENTRAINEMENT IOB NIVEAU 1 non corrigé.pdf", "parent_shared_folder_id": "1353864676", "id": "id:T6nGbXWJXnAAAAAAAAAATQ", "client_modified": "2017-08-03T14:26:18Z", "server_modified": "2017-12-18T15:32:50Z", "rev": "20750b255e4", "size": 2405480, "sharing_info": { "read_only": false, "parent_shared_folder_id": "1353864676", "modified_by": "dbid:AAA4Kn1daNJ6mXAl7ZnQceSadiYvkdo91sI" }, "content_hash": "7d885b6fdeefe7b8b7c8f7666ff5a449b5ea77e95db8bbb1951ed89d12303df3" } { ".tag": "file", "name": "16-LCB.mp4", "path_lower": "/dossier de l'équipe groupe valoriale/3-manuels de formations/1-iob 1/formation iobsp v1/acces manuel et complements/complements a lire/16-lcb.mp4", "path_display": "/Dossier de l'équipe GROUPE VALORIALE/3-manuels de formations/1-iob 1/FORMATION IOBSP V1/acces manuel et complements/COMPLEMENTS A LIRE/16-LCB.mp4", "parent_shared_folder_id": "1353864676", "id": "id:T6nGbXWJXnAAAAAAAAAAtQ", "client_modified": "2016-06-16T15:36:02Z", "server_modified": "2018-03-01T09:09:39Z", "rev": "25550b255e4", "size": 173195596, "sharing_info": { "read_only": false, "parent_shared_folder_id": "1353864676", "modified_by": "dbid:AAA4Kn1daNJ6mXAl7ZnQceSadiYvkdo91sI" }, "content_hash": "78e8cd0abd449d162ced4c80027967a92ad0152156437396667f189a6575b59d" }
Dropbox file IDs are case-sensitive, so the samples you shared here are unique:
id:T6nGbXWJXnAAAAAAAAAATQ
id:T6nGbXWJXnAAAAAAAAAAtQNote the "t" vs "T" in the second to last character. You can find more information on this in the Path Formats section in the documentation here.
- Greg-DBDropbox Staff
Dropbox file IDs are case-sensitive, so the samples you shared here are unique:
id:T6nGbXWJXnAAAAAAAAAATQ
id:T6nGbXWJXnAAAAAAAAAAtQNote the "t" vs "T" in the second to last character. You can find more information on this in the Path Formats section in the documentation here.
- TangExplorer | Level 4
Oh my bad, I checked the value and didn't notice that :-(
As you said setting case insensitive resolves my problem. Thank you very very much
About Dropbox API Support & Feedback
Find help with the Dropbox API from other developers.
5,877 PostsLatest Activity: 12 months agoIf 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!