title: File upload using PrototypeJs method $('formId').request()
body: <p>I was trying to upload file(s) using PrototypeJs request method but I failed.</p>
  
  <p>The code I am using,</p>
  
  <pre><code>&lt;form enctype="multipart/form-data" id="form1" runat="server" action="ajax.aspx"
  onsubmit="upMe(this);return false;" &gt;
  </code></pre>
  
  <p>If I make return true instead of false, the file is uploaded but that makes postback which I dont want as I am using the method request from PrototypeJs.</p>
  
  <p>And the function upMe is very simple,</p>
  
  <pre><code>function upMe(frmEle) {
          $(frmEle).request({
              method: 'post',
              parameters: {},
              onComplete: function() { alert('file has been uploaded'); }
          });
      }
  </code></pre>
  
  <p>What I am missing to upload file in the above way?</p>
  
  <p>Thank you so much.</p>