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

Forum Discussion

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

download file from bussiness teams

So ihave a bussines teams folder inside i have some .mdb file that want to download automatic, but the problem is that i cant access to the bussines folder so i created a shared link 

 

shared_link = dropbox.files.SharedLink(url=url)
    for entry in dbx.files_list_folder(path='', shared_link=shared_link).entries:
        if isinstance(entry, dropbox.files.FileMetadata):
            if entry.name == "asd.mdb":
                dbx.files_download(entry.path_display)
 
 
so i have an error downloading it and after i see the entry i have this in the metadata  path_display=NOT_SET, path_lower=NOT_SET
 
so i inserted the path manually for testing and cant download.
 
maybe there is somehow i can download a file from bussiness teams of my account ?
  • Hi dmartinez,

    By default you can access only files/folders residing within your private user folder on Business account with space configuration - nothing outside. In this context:


    dmartinez wrote:
    ...
    so i have an error downloading it and after i see the entry i have this in the metadata  path_display=NOT_SET, path_lower=NOT_SET
    ...

    ... is something normal. 🤷

    To be able access there you need to set account root for the API calls (not the default - your member's folder). In Python you can do it using 'with_path_root' method. In such a way you can access there (and download) directly, without using links. 😉

    Another alternative way (using links) is listing the folder link's content and get links pointing contained files. In such a way you're not restricted to link coming from you (your account) only. This way is not officially supported by Dropbox in spite accessible for years. For more info take a look here. Once you have a file link, direct download is possible (either using Dropbox API or not).

    Hope this helps.

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