cancel
Showing results for 
Search instead for 
Did you mean: 
Announcements

Known issues updated. Learn more

March contest: Post your Paper workflow to win a Dropbox t-shirt and tote bag!

Unique file id not really unique

Level 4

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"
}

 

 

1 Accepted solution

Accepted Solutions
Highlighted

Re: Unique file id not really unique

Dropboxer

Dropbox file IDs are case-sensitive, so the samples you shared here are unique:

id:T6nGbXWJXnAAAAAAAAAATQ
id:T6nGbXWJXnAAAAAAAAAAtQ

Note 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.

Reply
Loading...
2 Replies
Highlighted

Re: Unique file id not really unique

Dropboxer

Dropbox file IDs are case-sensitive, so the samples you shared here are unique:

id:T6nGbXWJXnAAAAAAAAAATQ
id:T6nGbXWJXnAAAAAAAAAAtQ

Note 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.

Reply
Loading...

Re: Unique file id not really unique

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

Reply
Loading...
API Support

Have a question? Our Dropbox Community is here to help you find an answer!
You won’t have to wait too long for a reply, but why not learn more about the Community while you’re here.

Not the right discussion for you? Find out what else our Community has to say about API Support.

Or, search our Help Center for even more.