title: How do i pass csrf token with this file upload
body: <p>I have this html:</p>
  
  <pre><code>&lt;input id="input-id" type="file" accept=".mp3, .mp4" name="file" class="form-control"&gt;&lt;br&gt;
  &lt;input type="hidden" id="getfilename" name="uploadedfile" value=""&gt;
  </code></pre>
  
  <p>And this jquery plugin to upload file:</p>
  
  <pre><code>$("#input-id").fileinput({
          maxFileSize: 264000,
          uploadUrl: "{{url('/rate/uploadfile')}}", 
          uploadAsync: true,
          allowedFileExtensions: ['mp3', 'mp4', 'mpeg', 'flv'],
          maxFileCount: 1,
          showUpload: true,
          dropZoneEnabled: false
  });
  </code></pre>
  
  <p>And the route under web middleware group:</p>
  
  <pre><code>Route::post('rate/uploadfile', 'RateController@uploadfile');
  </code></pre>
  
  <p>And whenever i try to upload the file i got the familiar error:</p>
  
  <blockquote>
    <p>TokenMismatchException in VerifyCsrfToken.php</p>
  </blockquote>