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

已查看 3 次
跳至第一个未读帖子

Krishna Chaitanya Bandi

未读,
2017年4月25日 04:43:492017/4/25
收件人 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

未读,
2017年4月25日 18:23:332017/4/25
收件人 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.
回复全部
回复作者
转发
0 个新帖子