title: FileUpload.HasFile returns "False" for multiple files upload - ASP.net
body: <p>I am using ASP.net FileUpload control to upload multiple files in database.</p>
  
  <pre><code>&lt;asp:UpdatePanel ID="UP_div_askQ" UpdateMode="Conditional" runat="server"&gt;
      &lt;ContentTemplate&gt;
          &lt;asp:FileUpload ID="FUQuestionFiles" CssClass="form-control" AllowMultiple="true" runat="server" /&gt;
          &lt;asp:Button ID="btnQSave" runat="server" CssClass="btn btn-success" Text="ASK QUESTION" OnClick="askQuestion" /&gt;
      &lt;/ContentTemplate&gt;
      &lt;Triggers&gt;
          &lt;asp:PostBackTrigger ControlID="btnQSave" /&gt;
      &lt;/Triggers&gt;
  &lt;/asp:UpdatePanel&gt;
  </code></pre>
  
  <p>In code behind I am using <code>HasFile</code> to check if files are present or not.</p>
  
  <pre><code>log.Debug("there are file" + FUQuestionFiles.HasFile.ToString());
  </code></pre>
  
  <p>But <code>HasFile</code> returns false when more than one file is selected.</p>
  
  <p><strong>Note: In case where only one file is selected, it returns true.</strong></p>
  
  <p>Thanks for your help.</p>