Your workflow is unique 👨💻 - tell us how you use Dropbox here.
Forum Discussion
Avi F.
10 years agoNew member | Level 1
Any way to get mixed-case path for a file?
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
Replies have been turned off for this discussion
- Greg-DB10 years ago
Dropbox Community Moderator
[Cross-linking for reference: https://stackoverflow.com/questions/34667886/dropbox-v2-api-is-there-any-way-to-get-the-original-mixed-case-path-of-from-a-f ]
FileMetadata.name will contain the case-preserved name, so you would need to build the path up from that.
- Avi F.10 years agoNew 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-DB10 years ago
Dropbox Community Moderator
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.10 years agoNew member | Level 1
Got it, thanks Gregory! Happy new year!
- Greg-DB9 years ago
Dropbox Community Moderator
Quick update, the FileMetadata object now contains a "path_display" property. You can read more about it in the documentation.
- Avi F.9 years agoNew member | Level 1
Wow, thanks Gregory! I really appreciate it!
About Dropbox API Support and Feedback
Get help with the Dropbox API from fellow developers and experts.
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, Facebook or Instagram.
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!