![]() If your app needs the correct case for all path components, it can get it from the Metadata.name or last path component of each relevant Metadata.path_display entry. Metadata.path_display usually will contain the correct case, but sometimes only in the last path component. Metadata.name will contain the correct case. Alternatively, developers need to make sure their query operators are explicitly case insensitive.Īlso, while Dropbox is case-insensitive, it makes efforts to be case-preserving. Case insensitive collations should be used when storing Dropbox path metadata in such databases. ![]() This can cause problems for apps that store file metadata from users in case-sensitive databases (such as SQLite or Postgres). Like in Dropbox itself, paths in the Dropbox API are case-insensitive, meaning that /A/B/c.txt is the same file as /a/b/C.txt and is the same file as /a/B/c.txt. In this case, the namespace ID, "123456", would be the shared_folder_id or team_folder_id of the shared folder or the team folder containing the file or folder, and the path, "/cupcake.png", would be the logical path to the content relative to its shared folder or team folder container. "id:abc123xyz/hello.txt").įor endpoints that accept performing actions on behalf of a team administrator using the Dropbox-API-Select-Admin header, files may be referenced using a namespace-relative path (e.g. A path relative to a folder's ID can be constructed by using a slash (e.g. Some endpoints, as noted in the individual endpoint documentation below, can accept IDs in addition to normal paths. These IDs are case-sensitive, so they should always be stored with their case preserved, and always compared in a case-sensitive manner. "id:abc123xyz") that can be obtained from any endpoint that returns metadata. For other path restrictions, refer to the help center.Įvery file and folder in Dropbox also has an ID (e.g. Paths may not end with a slash or whitespace. All other paths must start with a slash (e.g. ![]() The empty string ( "") represents the root folder. Paths are relative to an application's root (either an app folder or the root of a user's Dropbox, depending on the app's access type). This makes it easier to catch cases where your code is unintentionally triggering a pre-flight check.Īll dates in the API use UTC and are strings in the ISO 8601 "combined date and time representation" format:
0 Comments
Leave a Reply. |