update file input based on earlier uploaded file

This is a simple shiny application where there are 2 file inputs. When the user uploads file 1, automatically the file 2 also uploaded with the same file. (Basically , is there no function called updateFileInput ?)

library(shiny)

ui <- fluidPage(
 fileInput("file1",label = "File 1", accept = c('xlsx')),
 fileInput("file2",label = "File 2", accept = c('xlsx'))
)

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


}

shinyApp(ui, server)

This topic was automatically closed 42 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.