We Want to Hear From You! What Do You Want to See on the Community? Tell us here!

Forum Discussion

Adam D.19's avatar
Adam D.19
New member | Level 1
10 years ago

Are file ids globally unique?

The documentation doesn't say anything about file ids being unique at all, whereas this blog post leads me to believe they're unique per user, but not necessarily globally unique. Are file ids globally unique?

Thank you!

4 Replies

Replies have been turned off for this discussion
  • Adam D.19's avatar
    Adam D.19
    New member | Level 1
    10 years ago

    Sorry, the documentation does contain the language "A unique identifier for the file".

    However, the global uniqueness is still ambiguous.

  • Greg-DB's avatar
    Greg-DB
    Icon for Dropbox Community Moderator rankDropbox Community Moderator
    10 years ago

    Apologies we don't have better documentation on this right now! I'll send this along as a request for some.

    To answer your actual question though, there are a few things to note:

    - file IDs are not content hashes. That is, files with the same exact content in two unrelated accounts will have different IDs.

    - a single file in a shared folder with multiple users will be report the same file ID when requested via any one of the different members of the shared folder.

  • Adam D.19's avatar
    Adam D.19
    New member | Level 1
    10 years ago

    Gregory, Thank you very much for your reply. I understand that a single file in a shared folder with multiple users will report the same file ID for each user. My question is: is it possible for two different files with different content in two unrelated accounts to have the same file id?

  • Greg-DB's avatar
    Greg-DB
    Icon for Dropbox Community Moderator rankDropbox Community Moderator
    10 years ago

    No, in that case they would have distinct IDs.

About Dropbox API Support & Feedback

Node avatar for Dropbox API Support & Feedback
Find help with the Dropbox API from other developers.6,035 PostsLatest Activity: 3 years ago
409 Following

The Dropbox Community team is active from Monday to Friday. We try to respond to you as soon as we can, usually within 2 hours.

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!