Unable to download large number of files in a ZIP folder in shiny

3 views
Skip to first unread message

Krishna Chaitanya Bandi

unread,
Apr 25, 2017, 4:43:49 AM4/25/17
to Shiny - Web Framework for R
Hi,

In the shiny app I have built, on clicking the download button it generates around 10,000 files each of around 2MB of size and I've written the code to zip all of the files together. But the zip fails to do so for such large number of files (or in essence a limit of file sizes to zip). I'm running this on a windows 7 machine.

Any inputs or insights would be appreciated.

Thanks
Krishna Chaitanya

Joe Cheng

unread,
Apr 25, 2017, 6:23:33 PM4/25/17
to Krishna Chaitanya Bandi, Shiny - Web Framework for R
My understanding is that the .zip format is normally limited to 4GB (in terms of maximum archive size). I'm also not sure whether the browser will wait for long enough while you compress 20GB worth of files, my guess is that it will time out. Perhaps perform the zipping using an actionButton/observeEvent, and only on successful zipping, show the download button? (But you'd still need to find a way to create such a large archive.)

--
You received this message because you are subscribed to the Google Groups "Shiny - Web Framework for R" group.
To unsubscribe from this group and stop receiving emails from it, send an email to shiny-discus...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/shiny-discuss/143877c8-34d5-4667-bc6e-da6a260fb16f%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Reply all
Reply to author
Forward
0 new messages