title: SplFileInfo::getSize(): stat failed for C:\xampp\tmp\php88C2.tmp
body: <p>whene uploads image on laravel 6 show this Error</p>
  
  <blockquote>
    <p>SplFileInfo::getSize(): stat failed for C:\xampp\tmp\php88C2.tmp</p>
  </blockquote>
  
  <p>my Code</p>
  
  <pre><code>public function store(Request $request) {
  
          $this-&gt;validate($request,[
              "title"    =&gt; "required",
              "content"  =&gt; "required",
              "category_id"  =&gt; "required",
              "post_image" =&gt; "required|image",
  
          ]);
  
          $post_image = $request-&gt;post_image;
          $featured_new_name = time().$post_image-&gt;getClientOriginalName();
          $post_image-&gt;move('uploads/posts',$featured_new_name);
  
          $post = Post::create([
              "title"    =&gt; $request-&gt;title,
              "content"  =&gt; $request-&gt;content,
              "category_id"  =&gt; $request-&gt;category_id,
              "post_image" =&gt; 'uploads/posts/'.$featured_new_name,
  
          ]);
  
  
       return redirect()-&gt;back();
  }
  </code></pre>