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)