cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Announcements
Share your feedback on the Document Scanning Experience in the Dropbox App right here.

Dropbox API Support & Feedback

Find help with the Dropbox API from other developers.

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Any way to get mixed-case path for a file?

Any way to get mixed-case path for a file?

Avi F.
New member | Level 1

My app will display the full path of files. They look kinda strange (unfamiliar) when all lower-cased, which is all I seem to be able to access from a FileMetadata value. Is there any way to get the mixed-case path for a file with the v2 API?

 

Thank you!

6 Replies 6

Greg-DB
Dropbox Staff

[Cross-linking for reference: https://stackoverflow.com/questions/34667886/dropbox-v2-api-is-there-any-way-to-get-the-original-mix... ]

FileMetadata.name will contain the case-preserved name, so you would need to build the path up from that.

Avi F.
New member | Level 1

Thanks Gregory! I should have been clearer — I’m aware that I could walk up the path and get the full mixed-case name of each path segment, but that would require either many different HTTP requests or a sophisticated caching facility within my application. I’m wondering if there’s any way to retrieve this data with a single request — or even better, ideally, as a property in each FileMetadata value (e.g. in arrays).

If there’s no way to do this, I’d like to make this a feature request. Is there a formal way to do so?

Thanks!

Greg-DB
Dropbox Staff

Thanks for clarifying! No, there isn't a single call way to get it like that. I'll send this along as a feature request to the team though.

Avi F.
New member | Level 1

Got it, thanks Gregory! Happy new year!

Greg-DB
Dropbox Staff

Quick update, the FileMetadata object now contains a "path_display" property. You can read more about it in the documentation.

Avi F.
New member | Level 1

Wow, thanks Gregory! I really appreciate it!

Need more support?
Who's talking

Top contributors to this post

  • User avatar
    Avi F. New member | Level 1
  • User avatar
    Greg-DB Dropbox Staff
What do Dropbox user levels mean?