title: Uploading many files in Shiny
body: <p>I am developing an app that helps to organize and visualize many PDF documents by topic/theme. I can upload and read a single PDF but I have difficulty in reading multiple PDF documents.</p>
  
  <p>For single PDF document:</p>
  
  <p>ui.R</p>
  
  <pre><code>  ---
    fileInput('file1', 'Choose PDF File', accept=c('.pdf'))
  
   ---
  </code></pre>
  
  <p>server.R</p>
  
  <pre><code>   --------
  
     library(pdftools)
  
     -------
  
  
   mypdf&lt;-reactive({
  
     inFile &lt;- input$file1
  
     if (is.null(inFile)){
    return(NULL)
    }else{
    pdf_text(inFile$datapath)
  
     }
  
    })
  </code></pre>
  
  <hr>
  
  <p>To upload multiple PDF files, I have to use multiple = TRUE in the ui.R portion of the code, but how can I read in all the uploaded files?</p>