Skip to main content
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.

Best answer by rbarbosa Box

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.

View original
Did this topic help you find an answer to your question?

4 replies

rbarbosa Box
  • Developer Advocate
  • 553 replies
  • Answer
  • May 3, 2024

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.


  • Author
  • New Participant
  • 2 replies
  • May 6, 2024

Hi @rbarbosa ,

Thanks this one worked perfectly as per our requirement 😀


rbarbosa Box
  • Developer Advocate
  • 553 replies
  • May 9, 2024

Awesome! That is what we like!


system
  • Community Manager
  • 22 replies
  • May 13, 2024

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


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings