title: When attempting to upload a file in development on Laravel 5 I get stream_socket_sendto(): error
body: <p>I am trying a simple upload from a file so that a country has a sound file for its anthem attached. I am using <strong>PHP 7.2.10</strong> with <strong>Laravel 5.7.19</strong>.</p>
  
  <p>My form includes a field named anthem and the form commences with </p>
  
  <pre class="lang-html prettyprint-override"><code>&lt;form id="form-app" enctype="multipart/form-data"
        method="post"
        action="{{ route('storeCountryAnthemMPOnly',['id' =&gt; $co-&gt;id]) }}"&gt;
  </code></pre>
  
  <p>The route in <code>web.php</code> is:</p>
  
  <pre class="lang-php prettyprint-override"><code>Route::post('storeCountryAnthemMPOnly/{id}',
              'CountryController@storeCountryAnthemMPOnly')
         -&gt;name('storeCountryAnthemMPOnly');
  </code></pre>
  
  <p>and my function in the controller is just:</p>
  
  <pre class="lang-php prettyprint-override"><code>public function storeCountryAnthemMPOnly(Request $request, $id)
  {
    dd($request);
  }
  </code></pre>
  
  <p>When I press the submit button I am getting:</p>
  
  <blockquote>
    <p>stream_socket_sendto(): A request to send or receive data was disallowed because the socket is not connected and (when sending on a datagram socket using a sendto call) no address was supplied.</p>
  </blockquote>
  
  <p>I cannot understand this and help is greatly appreciated.</p>