title: how to upload file using dojo
body: <p>How do I browse to upload a file using Dojo? See the code below:</p>
  
  <pre class="lang-js prettyprint-override"><code> dojox.io.xhrMultiPart({
                url: "http://localhost:8080/myWebService",
                handleAs: "xml",
                form: dojo.byId("myForm"), 
                load: function(data){ processRequest(data);},
                error: function(error){ processError(error); },
                backButton: function() { 
                },
                mimetype: "text/xml"         
          });
  </code></pre>
  
  <p>Now which code do I have to append to the above code to upload a file?</p>