title: How to check file size of each file before uploading multiple files in ajaxtoolkit ajaxfileupload control in asp.net?
body: <p></p>
  
  <pre><code>&lt;cc1:AjaxFileUpload ID="AjaxFileUpload1"  AllowedFileTypes="jpg,jpeg"
  runat="server" MaximumNumberOfFiles="4"  OnUploadComplete="AjaxFileUpload1_UploadComplete" 
           /&gt;
  </code></pre>
  
  <p>Code behind file</p>
  
  <pre><code>protected void AjaxFileUpload1_UploadComplete(object sender, AjaxControlToolkit.AjaxFileUploadEventArgs e)
      {
          if (e.FileSize &gt; 10)
          {
              string filePath = e.FileName;
              AjaxFileUpload1.SaveAs(Server.MapPath(filePath));
          }
          else
          {
  
          }
      }
  </code></pre>
  
  <p>I want to check that all the files size should not exceed a particular value before the files upload event.</p>