title: FileException in UploadedFile.php line 235:
body: <p>I tried to upload an image file into a specified folder..</p>
  
  <p>But it shows an Error like this</p>
  
  <pre><code>FileException in UploadedFile.php line 235:
  The file "download (1).jpg" was not uploaded due to an unknown error.
  </code></pre>
  
  <p>My controller function is something like this</p>
  
  <pre><code>function postSave( Request $request)
  {
  
      $rules = $this-&gt;validateForm();
      $validator = Validator::make($request-&gt;all(), $rules);  
      if ($validator-&gt;passes()) {
          $data = $this-&gt;validatePost('tb_hotel');
  
          $id = $this-&gt;model-&gt;insertRow($data , $request-&gt;input('hotel_id'));
  
          if(!is_null(Input::file('logo')))
          {
              $updates = array();
              $file = $request-&gt;file('logo');
              $destinationPath = public_path().'/uploads/hotels/';
              $filename = $file-&gt;getClientOriginalName();
              $extension = $file-&gt;getClientOriginalExtension(); //if you need extension of the file
               $newfilename = $id.'.'.$extension;
               // print_r($newfilename);exit;
              $uploadSuccess = $request-&gt;file('logo')-&gt;move($destinationPath, $newfilename);
              if( $uploadSuccess ) {
                  $updates['logo'] = $newfilename; 
              } 
              $this-&gt;model-&gt;insertRow($updates , $id );
          }   
          .
          .
          .
          .           
  
  }
  </code></pre>
  
  <p>I don't know why!!.. I'm using the same function in another controller there it works properly..</p>
  
  <p>But here it show me an error like I mention above..</p>
  
  <p>Someone please help me..</p>
  
  <p>Thanks</p>