I am working on a simple code to upload multiple files using single upload button (AllowMultiple="true")
, and I am trying to add all the uploaded files to list, but the problem is only the first file is added without the other files.
asp.net
<asp:FileUpload runat="server" ID="file1" AllowMultiple="true" />
c#
PdfReader pdfReader1 = new PdfReader(file1.PostedFile.InputStream);
List<PdfReader> readerList = new List<PdfReader>();
readerList.Add(pdfReader1);