title: Laravel file upload not parsed with "multipart/form-data"
body: <p>I am trying a file upload which I've used before, but seems not to be working now</p>
  <pre><code>&lt;form action=&quot;{{ route('media.upload')}}&quot; method=&quot;POST&quot; enctype=&quot;multipart/form-data&quot;&gt;
  {{ csrf_field() }}
  &lt;input type=&quot;text&quot; name=&quot;name&quot; placeholder=&quot;title&quot;&gt;
  &lt;input type=&quot;file&quot; name=&quot;file&quot;&gt;
  &lt;button type=&quot;submit&quot; name=&quot;submit&quot;&gt;Submit&lt;/button&gt;&lt;/form&gt;
  </code></pre>
  <p>web.php</p>
  <pre><code>Route::group(['middleware' =&gt; 'auth:api'], function () {
  Route::get('upload', function () {
      return view('upload');
  })-&gt;name('upload');
  </code></pre>
  <p>api.php</p>
  <pre><code>Route::post('upload', 'UploadController@upload')-&gt;name('media.upload');
  </code></pre>
  <p>Controller Function</p>
  <pre><code>public function upload (Request $request)
  {
      dd($request-&gt;all());
  }
  </code></pre>
  <p>this is the error I'm getting, this is the only readable line </p>
  <pre><code>&quot;------WebKitFormBoundaryZIiC073OTmdxtEqAContent-Disposition:_form-data;_name&quot; =&gt; b&quot;&quot;_token&quot;\r\n\r\nTZFHuu4liPLE6Esz2avGRlqLv9K8v1uhKgI7dWw8\r\n------WebKitFormBoundaryZIiC073OTmdxtEqA\r\nContent-Disposition: form-data
  </code></pre>
  <p>I can't use application/x-www-form-urlencode the file is not uploaded</p>