title: react-bootstrap how to input only csv file and read this
body: <p>I want to upload a file ( restricted to csv and xsl only) and read it. also want to sample data of it using react-bootstrap.</p>
  
  <p>I new to react and react-bootstrap even html css.</p>
  
  <p>till now I have used</p>
  
  <pre><code>        &lt;input
              id="formControlsFile" type="file"
              accept=".csv"
              onChange={this.rhandleForce}
              ref={function(ref) { this.fileUpload = ref }.bind(this) }
          &gt;
          &lt;/input&gt;
  </code></pre>
  
  <p>this code reads only metadata of the file.
  and this below</p>
  
  <pre><code> &lt;CSVReader
                  cssClass="csv-input"
                  accept=".csv"
                  label="Select CSV with secret Death Star statistics"
                  onFileLoaded={this.handleForce}
                  onError={this.handleDarkSideForce}
                  inputId="ObiWan"
              /&gt;
  </code></pre>
  
  <p>does not restric to upload only csv files but read the file.</p>