title: Laravel show error getimagesize on image update
body: <p>I am having a strange issue here on image update. After add a new product I need the option of update image and get this error while inserting it everything is ok.</p>
  
  <pre><code>getimagesize(2.png): failed to open stream: No such file or directory
  </code></pre>
  
  <p>Here is my code </p>
  
  <pre><code> $file = $request-&gt;image;
  
          if (isset($file))
          {
              list($width, $height) = getimagesize($file);
              $extension = $file-&gt;getClientOriginalExtension();
              $final_filename = $file-&gt;getFilename() . '.' . $extension;
  
              $new_height_75 = (75 * $height) / $width;
              $thumb_img_75 = Image::make($file-&gt;getRealPath())-&gt;resize(75, $new_height_75);
              $thumb_img_75-&gt;save(public_path('attachments/product_images/thumbs_75').'/'.$final_filename,80);
  
  
  
              $new_height_250 = (250 * $height) / $width;
              $thumb_img_250 = Image::make($file-&gt;getRealPath())-&gt;resize(250, $new_height_250);
              $thumb_img_250-&gt;save(public_path('attachments/product_images/thumbs_250').'/'.$final_filename,80);
  
              $new_height_150 = (150 * $height) / $width;
              $thumb_img_150 = Image::make($file-&gt;getRealPath())-&gt;resize(150, $new_height_150);
              $thumb_img_150-&gt;save(public_path('attachments/product_images/thumbs_150').'/'.$final_filename,80);
  
              Storage::disk('product_images')-&gt;put($final_filename, File::get($file));
  
  
  
              $product-&gt;image = $final_filename;
  
          }
  </code></pre>
  
  <p>If i dd($file ); it gets the file I want to upload.
  Thanks</p>