title: Laravel image file Upload Error
body: <p>I am developing a laravel web app.
  I created a section for managing employees. in this area I uploading a profile picture for employee.</p>
  
  <p>when Uploading image there is no error and its working fine in add new employee area.</p>
  
  <p>But when editing an employee the image upload area is not taking changed image ( new image)</p>
  
  <p>here is my code..</p>
  
  <pre><code>   $photopaath = Employee::find(Input::get('employeeId'));
      $fullpath = $photopaath-&gt;emp_photo;
  
      if (Input::hasFile('picuplodr'))
          {
              File::delete(app_path().$fullpath);
              //$name = Input::file('picuplodr')-&gt;getClientOriginalName();
              $fileName = "photo".snake_case(Input::get('efname')).snake_case(Input::get('elname')).snake_case(Input::get('eemailaddrs'));
              Input::file('picuplodr')-&gt;move($destinationPath, $fileName);
              $path = Input::file('picuplodr')-&gt;getRealPath();
              $phototodb = '/uploads/'.$fileName;
              return "ssssssssssss";
          }
          else{
              $phototodb = $fullpath;
              return "ffffffff";
          }
  </code></pre>
  
  <p>its taking as else contition and returning as  <strong>ffffffff</strong>.</p>
  
  <p>Why this happening like this ?</p>
  
  <p>I changed the image and not going to the <strong>if (Input::hasFile('picuplodr'))</strong>  contition..</p>
  
  <p>I changed the permission to 777 of my project directory also but not getting solution for this.</p>
  
  <p>How can i solve this...?</p>