Cut the Clutter: Test Ignore Files Feature - sign up to become a beta tester here.

Forum Discussion

CrinaBucur's avatar
CrinaBucur
New member | Level 2
9 years ago

API v2 fileID support versus path

Hi,

 

I've recently rewritten our Dropbox consumer to implement the v2 API, instead of v1, following the migration guide's indications.

 

I was content to see that Dropbox now has a notion of file IDs (as opposed to paths only), as I found it troublesome in the past to work with file paths in file-sharing scenarios. Our app contains multiple cloud storage integrations beside Dropbox and we do not rely on the implicit shareable links that each cloud storage provides, but construct our own hyperlinks instead based on file IDs. In scenarios where the path to the same file was not the same in two users' Dropbox, things became more difficult (i.e. a need to search for the filename, which could be located at root level or in any of the internal folder in the hierarchy). I wanted to use IDs instead of paths, but I noticed that only certain API endpoints support IDs or REVs, while others, such as "/2/files/upload" only accept a path. Therefore it is impossible to overwrite a file for which the ID alone was stored. I would like to understand whether this is by design, as I find it to be inconsistent and kinda beats the purpose of relying on file IDs, which seemed like a great change brought by v2.

 

Thanks,

Crina

3 Replies

  • Greg-DB's avatar
    Greg-DB
    Icon for Dropbox Community Moderator rankDropbox Community Moderator
    9 years ago
    Hi Crina, this is expected. Dropbox API introduced the notion of a file ID, but it isn't available everywhere on the API unfortunately.

    We hope to implement support for file IDs on more endpoints in the future, I don't have a specific timeline to offer.
  • CrinaBucur's avatar
    CrinaBucur
    New member | Level 2
    8 years ago

    Hi Greg,

     

    I am not using any SDK, just low-level REST calls. This is good to know, but my organization probably won't invest in additional hours to adapt the implementation. Unfortunately we had to go with what was available in June - the file paths specification.

     

    Thank you for the update, nonetheless.

About Dropbox API Support & Feedback

Node avatar for Dropbox API Support & Feedback
Find help with the Dropbox API from other developers.6,038 PostsLatest Activity: 6 years ago
415 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!