title: laravel image upload - ajax do not post my image file
body: <p>I'm trying to upload an image from an ajax call to my server (on laravel).</p>
  
  <p>This is my server code:</p>
  
  <pre><code>if (Input::hasFile('flyer')){
      Log::info('WORK!');
      $file = Input::file('flyer');
      $file-&gt;move('uploads', $file-&gt;getClientOriginalName());
  }
  </code></pre>
  
  <p>As you can see, I've set a log istruction to understand if my file was uploaded or not...but my log file say it's not...</p>
  
  <p>My form code:</p>
  
  <pre><code>{{ Form::open(array('url' =&gt; 'new_event', 'id' =&gt; 'newEvent', 'files' =&gt; true)) }}
      //some fields...
      {{ Form::file('flyer', array('class' =&gt; 'form-control', 'id'=&gt;'inputImage')) }}
      // some other fields
  {{ Form::close() }}
  </code></pre>
  
  <p>and here is my ajax call:</p>
  
  <pre><code>$('#newEvent').submit(function() {
      $.ajax({
          data: $(this).serialize(),
          type: $(this).attr('method'),
          url: $(this).attr('action'),
          success: function(response) {
              $('#content').html(response);
          }
      });
      return false;
  });
  </code></pre>
  
  <p>Finally here my post-data (from google dev console) when i post my form:</p>
  
  <pre><code>_token:bqyiuQwtYEEs0tvhBcndi4ylsVPPi2FpYhGPLxKQ
  title:sdfgsdf
  description:sdfgsdf
  activated_at:23/04/2015
  expire_on:24/04/2015
  contact:a name
  phone:+387646
  email:some@one.com
  push:1
  </code></pre>
  
  <p>As you can see there is no trace of my image file (flyer)...why?</p>