title: How to add fileInputs into DT
body: <p>I need to add a fileInputs to each row of a table. Unfortunately, this widget does not work correctly, unlike regular actionButtons and other elements. The window for selecting a file is called, but the file is not loaded. I will be grateful for your help.
  Below is a simplified example application.</p>
  <pre><code>library(shiny)
  library(shinydashboard)
  library(DT)
  
  # Define UI for application that draws a histogram
  ui &lt;- fluidPage(DTOutput('tbl'))
  
  # Define server logic required to draw a histogram
  server &lt;- function(input, output) {
      output$tbl = renderDataTable({
          DT &lt;- iris
          
          for (i in 1:nrow(DT)) {
              DT$file &lt;- as.character(fileInput(
                  paste0(&quot;file&quot;, i),
                  label = NULL,
                  multiple = F,
                  accept = c(
                      &quot;text/csv&quot;,
                      &quot;text/comma-separated-values,text/plain&quot;,
                      &quot;.csv&quot;
                  ),
                  buttonLabel = paste(&quot;File&quot;, i)
              ))
          }
          
          datatable(DT,
                    options = list(lengthChange = FALSE),
                    escape = FALSE,
                    selection = &quot;single&quot;
          )
      })
      
      lapply(paste0(&quot;file&quot;, 1:nrow(iris)), function(nm) {
          observeEvent(input[[ nm ]], {
              print(input[[ nm ]])
              
          })
      })
      
  }
  
  # Run the application
  shinyApp(ui = ui, server = server)
  </code></pre>