title: Unable to read image from file ()
body: <p>I try to let my users upload their profile image and when i click submit button to save changes will get this error</p>
  
  <p><code>NotReadableException in Decoder.php line 20:
  Unable to read image from file ().</code></p>
  
  <p>this is my update methode in controller:</p>
  
  <pre><code>public function update(Request $request, $id)
      {
          $user = User::find($id);
          $this-&gt;validate($request, array(
            'first_name' =&gt; 'required|string|max:255',
            'last_name' =&gt; 'required|string|max:255',
            'gender' =&gt; 'required',
            'birthday' =&gt; 'required|date_format:d/m/Y|max:25',
            'email' =&gt; [
                'required', 'string', 'nullable', 'email', 'max:255',
                Rule::unique('users')-&gt;ignore($user-&gt;id),
              ],
            'password' =&gt; 'nullable|string|min:6|confirmed',
            'user_image' =&gt; 'sometimes|image',
          ));
  
          $user = User::find($id);
  
          $user-&gt;first_name = $request-&gt;input('first_name');
          $user-&gt;last_name = $request-&gt;input('last_name');
          $user-&gt;gender = $request-&gt;input('gender');
          $user-&gt;birthday = $request-&gt;input('birthday');
          $user-&gt;email = $request-&gt;input('email');
          if (trim(Input::get('password')) != '') {
            $user-&gt;password = Hash::make(trim(Input::get('password')));
          }
  
  
          //store user image
          if ($request-&gt;hasFile('user_image')) {
            $avatar = $request-&gt;file('user_image');
            $filename = time() . '.' . $avatar-&gt;getClientOriginalExtension();
            $location = public_path('avatars/' . $filename);
            Image::make($avatar)-&gt;resize(200, 200)-&gt;save($location);
  
            $user-&gt;image = $filename;
          }
  
          $user-&gt;save();
  
          Session::flash('success', 'Your information was successfully updated.');
  
          return redirect()-&gt;route('jobseeker.profile', $user-&gt;id);
      }
  </code></pre>
  
  <p>This is my blade template image section:</p>
  
  <pre><code>&lt;div class="panel-body"&gt;
  &lt;p&gt;
  @if (Auth::user()-&gt;image &amp;&amp; File::exist(public_path("avatars/" . Auth::user()-&gt;image)))
  &lt;img src="{{ Auth::user()-&gt;image }}" alt="user image" class="img-responsive" &gt;
   @else
  &lt;img src="{{ 'https:://www.gravatar.com/avatar/' . md5(strtolower(trim(Auth::user()-&gt;email))) . '?s=200&amp;d=wavatar' }}" alt="user image" class="img-responsive" &gt;
     @endif
  &lt;/p&gt;
  &lt;p&gt;
     {{ Form::label('user_image', 'Upload Your Image') }}
     {{ Form::file('user_image') }}
  &lt;/p&gt;
  &lt;/div&gt;
  </code></pre>
  
  <p>I'm using Laravel 5.4 and for uploading images I'm using Intervention Image.</p>
  
  <p>Any idea why is that?</p>