You might see that the Dropbox Community team have been busy working on some major updates to the Community itself! So, here is some info on what’s changed, what’s staying the same and what you can expect from the Dropbox Community overall.
Forum Discussion
chakmangoo
2 years agoExplorer | Level 4
File path from URL
Hello, Is there any way to get file path from file's URL. Example: If a file - "fileName.m4v" lives inside "folder1/sub-folder1" and its dropboxURL is https://www.dropbox.com/s/something/file...
- 2 years ago
chakmangoo wrote:...
I am looking for function/code that takes URL as parameter and returns filePath ("folder1/sub-folder1/fileName.m4v")
Hi chakmangoo,
It's only possible if the authenticated account is the one that own the shared link. In such a case you can use /2/sharing/get_shared_link_metadata.
Hope this helps.
PS: Take in mind that Dropbox non empty path always starts with slash (not directly with the first folder or file name as in your post). The path form, you posted, is invalid!
Здравко
2 years agoLegendary | Level 20
chakmangoo wrote:...
I am looking for function/code that takes URL as parameter and returns filePath ("folder1/sub-folder1/fileName.m4v")
Hi chakmangoo,
It's only possible if the authenticated account is the one that own the shared link. In such a case you can use /2/sharing/get_shared_link_metadata.
Hope this helps.
PS: Take in mind that Dropbox non empty path always starts with slash (not directly with the first folder or file name as in your post). The path form, you posted, is invalid!
About Dropbox API Support & Feedback
Find help with the Dropbox API from other developers.
5,910 PostsLatest Activity: 4 days agoIf 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 or Facebook.
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!