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

akanshikumari's avatar
akanshikumari
Explorer | Level 3
2 years ago

Shared paper extension file is giving unsupported linkt_ype error when trying fetch the content

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"
    }
}

 

  • Greg-DB's avatar
    Greg-DB
    2 years ago

    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.

  • Здравко's avatar
    Здравко
    Legendary | Level 20

    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.