title: Call to a member function getClientOriginalExtension() on a non-object
body: <p>I'm trying to make an image uploader, but it always give me this error</p>
  
  <p>Call to a member function getClientOriginalName() on a non-object
  here is my code controller code</p>
  
  <pre><code>public function postSubtitle()
  {
      //$video = Video::where('user_id', '=', Auth::id())-&gt;find(Input::all('id'));
  
      var_dump(Input::all());
      $file= Input::file('name');
      echo $file-&gt;getClientOriginalExtension();   
  }
  </code></pre>
  
  <p>and here is the upload form</p>
  
  <pre><code>{{ form_open({'url': 'video/subtitle', 'files': 'true'}) }}
  
                      {{ form_file('name', {class: 'form-control'} ) }}
                      {{ form_submit(trans('main.edit'), {class: 'btn btn-lg btn-success btn-block'}) }}
                      {{form_close()}}
  </code></pre>
  
  <p>what's wrong with my code?</p>