title: Simple form submit with files
body: <p>I am trying to write a simple upload form with input file type using React JS. When i submit the file, it is not submitting multi form data. It is submitting plain input file name.</p>
  
  <p>Do we need to make any other changes if we want to write upload functionality in React.</p>
  
  <p>Basic javascript code for uploading (<a href="http://jsfiddle.net/rajeevprasanna/UdDsn/1/" rel="nofollow">js fiddle link</a>) : </p>
  
  <pre><code>    /** @jsx React.DOM */
  var HelloMessage = React.createClass({
    render: function() {
      return (&lt;div&gt;
  
                  &lt;form name="secret" ENCTYPE="multipart/form-data"  method="POST" action="http://localhost:8080/uploadFile"&gt;
              Please choose two files to upload.
              &lt;br/&gt;
                  File 1:&lt;input type="file" id="profilePic" name="profilePic"/&gt;             
              &lt;br/&gt; 
                  &lt;input type="submit" value="submit"/&gt;
      &lt;/form&gt;
              &lt;/div&gt;);
    }
  });
  
  React.renderComponent(&lt;HelloMessage /&gt;, document.body);
  </code></pre>
  
  <p>Can someone help me to write using React JS.</p>