We are aware of the issue with the badge emails resending to everyone, we apologise for the inconvenience - learn more here.

Forum Discussion

emarco's avatar
emarco
Explorer | Level 3
6 years ago

Problem with paths using create_shared_link_with_settings

Hey, I'm trying to make a php code that will automatically create a shared link for the files I'm uploading and add it to an XML file. Both the upload and XML file are updating correctly, but I'm s...
  • Greg-DB's avatar
    6 years ago

    [Cross-linking for reference: https://stackoverflow.com/questions/53499573/problem-with-paths-using-create-shared-link-with-settings ]

    Getting a shared link for the root is not supported, so supplying a path like "" or "/" is expected to fail like that.

    To get the shared link for a file, you should supply the full path to the file, including the file name and extension. For example, for a file "example.xml" in a folder "Documents", the path would be: "/Documents/example.xml".

    You can construct these paths manually if you want, but it's better to use the paths returned by the API itself. For instance, when uploading a file, the API returns the metadata for the uploaded file in the response body. Specifically, you should use the returned 'path_lower' value.

About Dropbox API Support & Feedback

Node avatar for Dropbox API Support & Feedback

Find help with the Dropbox API from other developers.

5,877 PostsLatest Activity: 6 hours ago
325 Following

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 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!