Discuss Dropbox Developer & API
I am trying to fetch the content of a file(untitled.paper) using API: https://content.dropboxapi.com/2/sharing/get_shared_link_file
But I am getting the below shared error.
Is there a way to get the content of a shared file?
{
"error_summary": "unsupported_link_type/.",
"error": {
".tag": "unsupported_link_type"
}
}
@akanshikumari Здравко is correct; the Dropbox API doesn't offer a way to do this directly, but I'll pass this along as a feature request. I can't promise if or when that might be implemented though.
Hi @akanshikumari,
As noted in /2/sharing/get_shared_link_file documentation:
Download the shared link's file from a user's Dropbox.
In other words, you can use this access point to download... downloadable files only. 😉 The file you're trying to download is NOT a downloadable one, it is exportable!
As noted in the same documentation a bit further (error messages):
unsupported_link_type Void This type of link is not supported; use files.export instead.
In other words, you can use /2/files/export to export some non downloadable file. Unfortunately, you cannot do this on link and that's why you need to save the pointed file in accessible Dropbox account (temporary is enough) using /2/files/save_url. Let's hope this imperfection will be fixed - i.e. direct export to be possible on link (as is already through web view).
Hope this helps.
@akanshikumari Здравко is correct; the Dropbox API doesn't offer a way to do this directly, but I'll pass this along as a feature request. I can't promise if or when that might be implemented though.
As mentioned in dropbox export API we need to pass the path of file in headers.. But I am not getting path for shared file/folders in any of the listed API's:
The path fields are "optional", meaning they are not guaranteed to be set. The path fields will not be set if the file is not mounted in the connected account. In your screenshot, the path fields are not set, meaning they are not mounted in the account for the access token you're using, and so there is no path value to return.
Hi there!
If you need more help you can view your support options (expected response time for a 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!