Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Dropbox file unique identifier - RESTful API

Is there any unique identifier associated with a Dropbox file that doesn't change with revisions/changes/renaming, that can be accessed via the RESTful API? I want to store it in the database and keep track of some operations on the file.

like image 340
MeetM Avatar asked Mar 04 '13 19:03

MeetM


People also ask

How do I find Dropbox file ID?

You can get the ID for a file or folder from the Metadata object for the file or folder, e.g., as returned by /2/files/get_metadata or /2/files/list_folder. If you want to download a file though, you should use /2/files/download (not /2/file_requests/get).

Does Dropbox save metadata?

Metadata Storage at Dropbox. At Dropbox, we store most of our product metadata in an in-house one-size-fits-all database called Edgestore. Over time, however, small misalignments in values between Edgestore and the various product use cases it powers became increasingly problematic.

How do I get my Dropbox API key?

Go to the Dropbox App Console and log in (you need a Dropbox account to do this). Select Create App. After the app is created, you will be taken to the App's settings page for the app. Scroll to the OAuth 2 section, find the Generated access token section and click on Generate.

What is a unique identifier of a folder?

A Unique identifier (UID) is a positive long value, assigned to each message in a specific folder. Unique identifiers are assigned in a strictly ascending fashion in the mailbox. That is, as each message is added to the mailbox it is assigned a higher UID than the message(s) which were added previously.


1 Answers

Unfortunately, no, the Dropbox API does not currently expose any sort of file ID or hash like this.


Edit: The Dropbox API v2 does now offer file IDs that persist across moves/renames. You can find more information under "Path formats" in the documentation.

The file ID is available as the id field on the FileMetadata object, e.g., as returned by /files/get_metadata.

like image 191
Greg Avatar answered Oct 09 '22 09:10

Greg