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

Vinay1's avatar
Vinay1
New member | Level 2
3 months ago

Clarification on APIs and File Download Methods

Hi Team,

 

Could you please provide guidance on the following:

  1. Which APIs should we use when downloading specific user files from dropbox
  2. When is it appropriate to use the root namespace ID for accessing user files?
  3. If a user’s files are stored within nested folders, what is the recommended approach for downloading those files? Should we use recursive methods to navigate through the folder structure?

Looking forward to your insights.



Thank you.

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

    Vinay1 wrote:

     

    1. Which APIs should we use when downloading specific user files from dropbox

    ...


    /2/files/download

     


    Vinay1 wrote:

    ...

        2. When is it appropriate to use the root namespace ID for accessing user files?

    ...


    Whenever you need to access files residing outside member folder of a team member, using namespace ID becomes mandatory, otherwise - optional.

     


    Vinay1 wrote:

    ...

    3. If a user’s files are stored within nested folders, what is the recommended approach for downloading those files? Should we use recursive methods to navigate through the folder structure?

    ...


    It's rather matter of your design decision. All available methods are possible. Usually using refer to file/folder id is considered more secure.

    If you want to download entire folder at once, you may consider downloading zipped folder. After that you may unzip it if desirable (including "on flight").

    Good luck.