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 ?