title: Laravel 5.8 image failed to upload
body: <p>I cannot seem to upload an image file with <code>Laravel</code>. I keep getting <code>the photo failed to upload</code>.</p>
  
  <p>My form:</p>
  
  <pre><code>&lt;form id="save_report_form" action="{{ route('report.add') }}" method="post" enctype="multipart/form-data"&gt;
      &lt;input type="file" name="image" class="upload-photo" id="image" accept="image/png,image/jpg" /&gt;
  &lt;/form&gt;
  </code></pre>
  
  <p>My Controller:</p>
  
  <pre><code>public function add(Request $request)
  {
      $this-&gt;validate($request, [
          'image' =&gt; 'required|image|mimes:png,jpg',
      ]);
  
      // Get all file details and store in public
      $disk        = Storage::disk('public');
      $file        = $request-&gt;file('image');
      $ext         = $file-&gt;getClientOriginalExtension();
      $filename    = $file . '.' . $ext;
      $disk-&gt;put($filename, file_get_contents($file), 'public');
  
      return redirect()-&gt;back();
  }
  </code></pre>
  
  <p>I have changed <code>upload_max_filesize</code> to <code>20mb</code> for my dev server.</p>
  
  <p>Where can I look to find the reason for the upload failure? I am not getting anything in the <code>Laravel</code> log. What have I missed. Thanks.</p>