title: Laravel 4 upload image form
body: <p>I'm trying to make a form that allows uploading a file and store it in the public/upload folder of the application.</p>
  
  <p>my form is:</p>
  
  <pre><code>&lt;form action="/image/save" method="post"&gt;
  &lt;input name="image" type="file" /&gt;
  &lt;input type="submit" value="Save"/&gt;
  &lt;/form&gt;
  </code></pre>
  
  <p>and the controller:</p>
  
  <pre><code>public function save(){
  $file = Input::file('image');
  $destinationPath = 'upload/';
  $filename = $file-&gt;getClientOriginalName();
  Input::file('image')-&gt;move($destinationPath, $filename);
  </code></pre>
  
  <p>But when I run it I get the following error:
  Call to a member function <code>getClientOriginalName()</code> on a non-object</p>