title: I need to upload file on server by PopUp window by using jQuery
body: <pre><code>@using (Html.BeginForm(null, null, FormMethod.Post, new { enctype = "multipart/form-data" }))
  { 
      &lt;td&gt;File:&lt;/td&gt;
      &lt;input type="file" name="File" id="File" onchange="PreviewImage();" /&gt;
      &lt;td align="right" valign="middle"&gt;
           &lt;img id="uploadPreview" style="width: 200px; height: 100px;" /&gt;
      &lt;/td&gt;
      &lt;script type="text/javascript"&gt;
          function PreviewImage() {
               var oFReader = new FileReader();
               oFReader.readAsDataURL(document.getElementById("File").files[0]);
  
               oFReader.onload = function (oFREvent) {
                   document.getElementById("uploadPreview").src = oFREvent.target.result;
               };
          };
      &lt;/script&gt;
      &lt;td&gt;&amp;nbsp;&lt;/td&gt;
      &lt;td&gt;&lt;input type="submit"  name="submit" value="Upload" /&gt;&lt;/td&gt; 
  }
  </code></pre>