title: CakePHP Ajax form submission with File Upload
body: <p>I am using cake PHP file upload with the AJAX form submit. But it is not wotrking. There is nothing in the $_FILES array. But When I use normal form submit, it is working fine without any issue. I am using the following code for form submit using AJAX</p>
  
  <pre><code>    echo $this-&gt;Form-&gt;create('AlbumDetail',array('enctype' =&gt; 'multipart/form-data','type'=&gt;'file'));
  
      echo $form-&gt;input('Image',array("type" =&gt; "file"));  
  
      echo $ajax-&gt;submit('Add Album', array('url'=&gt; array('controller'=&gt;'album_details', 'action'=&gt;'addalbum'), 'update' =&gt; 'album_update'));
  </code></pre>
  
  <p>While ,</p>
  
  <pre><code>echo $this-&gt;Form-&gt;create('AlbumDetail', array('enctype' =&gt; 'multipart/form-data', 'controller' =&gt; 'album_details', 'action' =&gt; 'addalbum', 'type' =&gt; 'file'));
  
  echo $form-&gt;input('Image',array("type" =&gt; "file")); 
  
  echo "&lt;input name='submit' type='submit' value='Add Album'&gt;";
  </code></pre>
  
  <p>is working without any problem and $_FILES array is returning values. Can anyone do a little help ...?</p>