title: Uploading zip with multiple files into a shiny application
body: <p>I am trying to upload a zip file through my shiny app that contains a bunch of xml files in it, and then process them. My code looks something like this:</p>
  
  <pre><code>library(shiny)
  
  parse_xml &lt;-function(FileName) {
    a &lt;- xmlParse(FileName)
    xmlToDataFrame(a, stringsAsFactors = FALSE) %&gt;%
      fill(Description, Min, Max, id, StartDateTime,
           EndDateTime, .direction = "up") %&gt;%
      na.omit()
  }
  
  ui &lt;- fluidPage(
    column(width = 4,
           fileInput("upload", "Upload", accept = ".zip")),
    column(width = 4,
           br(),
           actionButton("process", "Process uploaded data"))
  )
  
  server &lt;- function(input, output) {
    observeEvent(input$process, {
      files &lt;- unzip(input$upload, list = TRUE)
  
      Data &lt;- ldply(unz(input$upload, files$Name[2:length(files$Name)]), parse_xml)
    })
  }
  
  shinyApp(ui = ui, server = server)
  </code></pre>
  
  <p>At the first step of trying to unzip file, I already get an error:</p>
  
  <pre><code>Warning: Error in unzip: invalid zip name argument
  </code></pre>
  
  <p>Does anyone have any idea on how I can fix this?</p>
  
  <p>UPD: The first error was fixed by changing <code>input$upload</code> to <code>input$upload$datapath</code>. The new error:</p>
  
  <pre><code>Error in unz: invalid 'description' argument
  </code></pre>