title: Javascript copying file
body: <p>I'm using React for the time on a project in Yeoman and I have to admit I'm out of my depth.
  I'm making a website and hosting it on localhost:3000 to test.
  I want to be able to upload a file and then that file will be copied into the given directory.</p>
  
  <p>index.html</p>
  
  <pre><code>&lt;!doctype html&gt;
  &lt;html&gt;
    &lt;head&gt;
      &lt;meta charset="utf-8"&gt;
      &lt;title&gt;Instance load Manager&lt;/title&gt;
      &lt;meta name="description" content=""&gt;
      &lt;meta name="viewport" content="width=device-width"&gt;
      &lt;link rel="icon" type="image/png" href="http://fountainjs.io/assets/imgs/fountain.png" /&gt;
    &lt;/head&gt;
    &lt;body&gt;
      &lt;div id="header"&gt;
        &lt;input type="file" id="file" name="files[]" multiple onchange="moveFile()" /&gt;
      &lt;/div&gt;
      &lt;!--[if lt IE 10]&gt;
        &lt;p class="browsehappy"&gt;You are using an &lt;strong&gt;outdated&lt;/strong&gt; browser. Please &lt;a href="http://browsehappy.com/"&gt;upgrade your browser&lt;/a&gt; to improve your experience.&lt;/p&gt;
      &lt;![endif]--&gt;
  
      &lt;div id="root"&gt;&lt;/div&gt;
    &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>
  
  <p>index.js</p>
  
  <pre><code>import React from 'react';
  import ReactDOM from 'react-dom';
  import {Router, Route, browserHistory} from 'react-router';
  
  import {Hello} from './app/hello';
  import {Upload} from './app/upload';
  
  import './index.scss';
  
  ReactDOM.render(
    &lt;Router history={browserHistory}&gt;
      &lt;Route path="/" component={Hello}/&gt;
    &lt;/Router&gt;,
    document.getElementById('root')
  );
  
  ReactDOM.moveFile(
    &lt;Router history={browserHistory}&gt;
      &lt;Route path="/" component={Upload}/&gt;
    &lt;/Router&gt;,
    document.getElementById('root')
  );
  </code></pre>
  
  <p>upload.js</p>
  
  <pre><code>import React, {Component} from 'react';
  
  export class Upload extends Component {
    moveFile() {
      const file = document.getElementById('file').files[0];
      if (file) {
        //  getAsText(file);
        file.copy(`$decodeURI("C:\\Users\\I329968\\Documents\\") / $file.displayName`);
        return (
          &lt;h2&gt;{'Hello world!'}&lt;/h2&gt;
        );
      }
    }
  }
  </code></pre>
  
  <p>Everything is working fine except the upload.js doesn't seem to do anything at all. Help much appreciated.</p>