Announcements
Do you have an idea for Dropbox Paper? Share it with us here!
Highlighted

Issue with Dropbox js API?

Explorer | Level 4

I have this test folder in Dropbox called 'googleApp', I'm using the filesListFolder to list the files. Without modifying the folder names or content the 'path_display' makes 'googleApp' lowercase causing my application to render two folders 'googleApp' and 'googleapp'. 

Screen Shot 2018-07-12 at 12.38.05 PM.png

1 Accepted solution

Accepted Solutions

Re: Issue with Dropbox js API?

Dropboxer

Unfortunately, that path_display behavior is sometimes expected. Even in path_display, the original casing isn't always available for all components. There's a note about this in the API v2 documentation, under "Case insensitivity":

 

Also, while Dropbox is case-insensitive, it makes efforts to be case-preserving. Metadata.name will contain the correct case. Metadata.path_display usually will contain the correct case, but sometimes only in the last path component. If your app needs the correct case for all components, it can get it from the Metadata.name or last path component of each relevant Metadata.path_display entry.

We understand this is non-ideal of course, and I'll forward this on to the team as feedback, but I can't make any promises as to if or when this might be improved in the future.

View solution in original post

Reply
Loading...
1 Reply

Re: Issue with Dropbox js API?

Dropboxer

Unfortunately, that path_display behavior is sometimes expected. Even in path_display, the original casing isn't always available for all components. There's a note about this in the API v2 documentation, under "Case insensitivity":

 

Also, while Dropbox is case-insensitive, it makes efforts to be case-preserving. Metadata.name will contain the correct case. Metadata.path_display usually will contain the correct case, but sometimes only in the last path component. If your app needs the correct case for all components, it can get it from the Metadata.name or last path component of each relevant Metadata.path_display entry.

We understand this is non-ideal of course, and I'll forward this on to the team as feedback, but I can't make any promises as to if or when this might be improved in the future.

View solution in original post

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.

Who's talking
Top contributors to this post