title: Upload a file in ASP?
body: <p>I have a FileUploader ion my website. When I choose a pic, it works fine.
  But when I choose another type of file, this error occurs:</p>
  
  <blockquote>
    <p>This site can’t be reached. The connection was reset.</p>
  </blockquote>
  
  <p><a href="https://i.stack.imgur.com/ZJPmZ.png" rel="nofollow"><img src="https://i.stack.imgur.com/ZJPmZ.png" alt="click to see error"></a></p>
  
  <p>Here is my code:</p>
  
  <pre><code>protected void UploadFile_Click(object sender, EventArgs e)
  {
      if (rb_pic.Checked==true)
      {
          UploadPic();
      }
      else if (rb_vid.Checked == true)
      {
          UploadVideo();
      }
      else if (rb_picvid.Checked == true)
      {
          UploadVidPic();
      }
  
  }
  </code></pre>
  
  <p>As you see, <code>Uploadvideo</code> method is empty:</p>
  
  <pre><code>public void UploadVideo()
  {
  
  }
  </code></pre>
  
  <p><code>UploadPic();</code> and <code>UploadVidPic();</code> are working fine.</p>