Set file size limit for download downloadHandler()

Hi. I use

# Set maximum file size upload to app
options(shiny.maxRequestSize = 10000 * 1024 ^ 2)

to set the max file size upload but how do I set the max file download?

Sadly, the downloadHandler() function fails every time I try to download a .tar.gz folder that is 1.5GB or more. What do I need to do to download this folder? Code below:

output$downloadResultsFolder <- downloadHandler(
    # Download simulated or real data used
    filename = function() {
      paste("thing", "tar", "gz", sep = ".")
    },
    content = function(folderName) {
      command <- paste("tar -czvf ", local_results_folder(),"/thing.tar.gz ",local_results_folder(),"/thing/results", sep = "")
      cat(command)
      system(paste("tar --usage", "> /tmp/file_output.txt",  sep=" "))# , intern = TRUE)
      system(command)
      file.copy(paste(local_results_folder(), "/thing.tar.gz", sep = ""), folderName)},
      contentType = "application/octet-stream"
  )

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

If you have a query related to it or one of the replies, start a new topic and refer back with a link.