title: Laravel upload image error
body: <p>Error: The image must be a file of type: jpeg, png, jpg, gif, svg.</p>
  
  <p>I have this error when i try to upload image from the form, the image is .jpeg and i think it should work beacuse 'image'should be 'required|mimes:jpeg,png,jpg,gif,svg|max:2048'</p>
  
  <p><strong>My Controller</strong></p>
  
  <pre><code>public function store(){
  
      $this-&gt;validate(request(),[
  
          'title' =&gt; 'required',
  
          'image' =&gt; 'required|mimes:jpeg,png,jpg,gif,svg|max:2048',
  
          'body' =&gt; 'required',
  
      ]);
  
      auth()-&gt;user()-&gt;publish(
  
          new Post(request(['title','image','body']))
      );
  
  
      session()-&gt;flash('message', 'your post has now been published');
  
  
      return redirect('/');
  }
  </code></pre>
  
  <p>** My BLADE**</p>
  
  <pre><code>&lt;form method="POST" action="/posts"&gt;
  
      {{csrf_field()}}
  
      &lt;div class="form-group"&gt;
  
          &lt;label for="title"&gt;Titolo&lt;/label&gt;
  
          &lt;input type="text" class="form-control" id="title" name="title"&gt;
  
      &lt;/div&gt;
  
  
      &lt;div class="form-group"&gt;
  
          &lt;label for="image"&gt;Immagine&lt;/label&gt;
  
          &lt;input type="file" class="form-control" id="image" name="image"&gt;
  
      &lt;/div&gt;
  
      &lt;div class="form-group"&gt;
  
          &lt;label for="body"&gt;Corpo&lt;/label&gt;
  
          &lt;textarea id="body" name="body" class="form-control"&gt;&lt;/textarea&gt;
  
      &lt;/div&gt;
  
      &lt;div class="form-group"&gt;
  
          &lt;button type="submit" class="bottone"&gt;Invia&lt;/button&gt;
  
      &lt;/div&gt;
  
      @include ('layouts.errors')
  
  &lt;/form&gt;
  </code></pre>