Skip to main content
New Participant
May 3, 2024 9:44 AM UTC
Solved

Download a folder as a zip using box-node-sdk

I’ve incorporated Box into my applications and have relied on it for several months. Previously, I’ve been utilizing the getDownloadURL function outlined in their documentation to download individual files.

Now, my objective is to download an entire folder as a zip file. To accomplish this, I’ve utilized a recursive implementation of the getDownloadURL function and manually recreated the folder structure to mimic that of Box.

Is there a built-in solution or workaround provided by Box for this scenario? The current process is consuming significant server resources and is prone to failure, especially when dealing with folder sizes in the gigabytes range.

Thank you in advance for your assistance.

    rbarbosa Box
    Developer Advocate
    May 3, 2024 7:34 PM UTC

    Hi @hgupta007 , welcome to the forum!

    Yes there is, it is called zip download.

    For the node SDK you can, create the zip file, and download the zip file.

    Let us know if this helps.

    4 replies

    rbarbosa Box
    Developer Advocate
    May 3, 2024 7:34 PM UTC

    Hi @hgupta007 , welcome to the forum!

    Yes there is, it is called zip download.

    For the node SDK you can, create the zip file, and download the zip file.

    Let us know if this helps.

    Translate
    hgupta007Author
    New Participant
    May 6, 2024 1:08 PM UTC

    Hi @rbarbosa ,
    Thanks this one worked perfectly as per our requirement 😀

    Translate
    rbarbosa Box
    Developer Advocate
    May 9, 2024 8:04 PM UTC

    Awesome! That is what we like!

    Translate
    system
    Box Employee
    May 13, 2024 8:04 PM UTC

    This topic was automatically closed 4 days after the last reply. New replies are no longer allowed.

    Translate