title: Laravel AJAX Image Upload error: Image source not readable
body: <p>Trying to upload an image via AJAX but having issues...</p>
  
  <p>The form:</p>
  
  <pre><code>{{ Form::open(array('class' =&gt; 'update-insertimage-form', "files" =&gt; true,)) }}
      {{ Form::file('image', array('class' =&gt; 'update-insertimage-btn', 'name' =&gt; 'update-insertimage-btn')) }}
  {{ Form::close() }}
  </code></pre>
  
  <p>And the PHP:</p>
  
  <pre><code>$createImage = Image::make(Input::file('update-insertimage-btn'))-&gt;orientate();
  $createImage-&gt;resize(600, null, function ($constraint) {
  $constraint-&gt;aspectRatio();
  });
  $createImage-&gt;save("user_uploads/cover_images/TEST.jpeg");
  </code></pre>
  
  <p>jQuery:</p>
  
  <pre><code>$('.update-insertimage-form').submit(function() {
    $(".submit-newupdate-btn").addClass('disabled');
    var rootAsset = $('.rootAsset').html();
    $.ajax({
      url: rootAsset+'saveUploadedImage',
      type: 'post',
      cache: false,
      dataType: 'json',
      data: $('.update-insertimage-form').serialize(),
      beforeSend: function() {
      },
      success: function(data) {
        if(data.errors) {
          $('.modal-body').append('&lt;div class="alert alert-danger centre-text modal-error-message" role="alert"&gt;&lt;strong&gt;Error!&lt;/strong&gt; '+ data.errors +'&lt;/div&gt;');
        } else if (data.success) {
          $(".form-control-addupdate").append(data.name);
        }
      },
      error: function(xhr, textStatus, thrownError) {
          alert('Something went to wrong.Please Try again later...');
      }
    });
  return false;
  });
  </code></pre>
  
  <p>I use this same exact code else where which works fine but not with AJAX (not sure if that has anything to do with it)</p>
  
  <p>The error is this:</p>
  
  <pre><code>{"error":{"type":"Intervention\\Image\\Exception\\NotReadableException","message":"Image source not readable","file":"\/Applications\/MAMP\/htdocs\/buildsanctuary\/vendor\/intervention\/image\/src\/Intervention\/Image\/AbstractDecoder.php","line":257}}
  </code></pre>
  
  <p>Any help?</p>