title: Error in ajax file upload control of asp.net
body: <p>I am getting following error when i try to upload the file on the asp.net directly</p>
  
  <pre><code>index-1.jpg (image/jpeg) - 7.72 kb (error) (In red sign)
  
  &lt;ajaxToolkit:AjaxFileUpload ID="imageUploader" CssClass="uploadBox" OnUploadComplete="imageuploader_onUploadComplete" ThrobberID="imagethrobber" AllowedFileTypes="jpg,jpeg,png,bmp" MaximumNumberOfFiles="1" runat="server" /&gt;
  </code></pre>
  
  <p>Following is my code.</p>
  
  <pre><code>            //=========== Uploaded file format ============================
              string filename = e.FileName;
  
              //============== Upload the file ==============================
              imageUploader.SaveAs("~/articleimage/"+filename);
  </code></pre>
  
  <p>Kindly please help me in solving this issue. I am using visual studio 2010 , .net 4 and ajaxcontroltoolkit for 2010.</p>