Downloadhandler works locally but not on any browser

Hello ! My app is working properly locally and on shiny.io. But I hosted it on a google cloud platform on Linux and there, the download button/Downloadhandler doesn't work neither on Firefox (error : not found) or Chrome (error : server problems)

Here is the code:

ui <- 

[...]

downloadButton(outputId = "downloadData", "Télécharger les résultats"))

server <- function(input, output, session) {

[...]

 output$downloadData <- downloadHandler(
    filename = function() {
      paste("seg_", as.character(input$Categorie),".csv", sep = "")
    },
    content = function(file) {
      write.csv2(data_d() , file, row.names = FALSE)
    }
  )
}

Any idea what the problem could be ?

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