title: CakePHP 2.0, Submit form redirect not rendering properly
body: <p>Hi I've created a file upload form, it all works perfectly apart from when I press submit it does not re-direct me to the Uploads/add.ctp, but it does save the file to the directory and on to the database.In fact if I point the re-direct to uploads/browse it still does not take me to uploads/browse. </p>
  
  <p>This is my controller</p>
  
  <pre><code>public function add() {
  
  if(!empty($this-&gt;data)){
  
      $file = $this-&gt;request-&gt;data['Upload']['file'];
  if ($file['error'] === UPLOAD_ERR_OK &amp;&amp; $this-&gt;Upload-&gt;save($this-&gt;data)){
      $this-&gt;Upload-&gt;save($this-&gt;data);
      if(move_uploaded_file($file['tmp_name'],APP.'webroot/files/uploads'.DS.$this-&gt;Upload-&gt;id.'.mp4')) {
      $this-&gt;Session-&gt;setFlash(__('&lt;p class="uploadflash"&gt;The upload has been saved&lt;/p&gt;', true));
      $this-&gt;redirect(array('controller'=&gt;'Uploads','action' =&gt; 'add'));
      } else{
  
      $this-&gt;Session-&gt;setFlash(__('&lt;p class="uploadflash"&gt;The upload could not be saved. Please, try again.&lt;/p&gt;', true));
  
      }
  } 
  
  
  }
  }
  </code></pre>
  
  <p>and this is my form </p>
  
  <pre><code>      &lt;div class="maincontent"&gt;
        &lt;?php echo $this-&gt;Form-&gt;create('Upload', array('type' =&gt; 'file', 'class'=&gt;'uploadfrm'));?&gt;
  &lt;fieldset class='registerf'&gt;
      &lt;legend class='registerf2'&gt;Upload a Video&lt;/legend&gt;
  &lt;?php
      echo 'Upload your video content here, there is no size limit however it is       &lt;b&gt;.mp4&lt;/b&gt; file format only.';
      echo '&lt;br/&gt;';
      echo '&lt;br/&gt;';
      echo $this-&gt;Form-&gt;input('name', array('between'=&gt;'&lt;br /&gt;', 'class'=&gt;'input'));
      echo $this-&gt;Form-&gt;input('eventname', array('between'=&gt;'&lt;br /&gt;'));
      echo $this-&gt;Form-&gt;input('description', array('between'=&gt;'&lt;br /&gt;', 'rows'=&gt; '7', 'cols'=&gt; '60'));
      echo  $this-&gt;Form-&gt;hidden('userid', array('id' =&gt; 'user_id','value' =&gt; $auth['id']));
      echo $this-&gt;Form-&gt;hidden('username', array('id' =&gt; 'username', 'value' =&gt; $auth['username']));
      echo $this-&gt;Form-&gt;input('file', array('type' =&gt; 'file'));
      echo "&lt;br/&gt;"
  ?&gt;
  &lt;?php echo $this-&gt;Form-&gt;end(__('Submit', true));?&gt;
  &lt;/fieldset&gt;
  </code></pre>
  
  <p></p>
  
  <pre><code>     &lt;?php
  
     class UploadsController extends AppController {
     public $name = 'Uploads';
  
        public $helpers = array('Js');
  
  
  
  // Users memeber area, is User logged in…
   public $components = array(
      'Session',
      'RequestHandler',
      'Auth'=&gt;array(
          'loginRedirect'=&gt;array('controller'=&gt;'uploads', 'action'=&gt;'browse'),
          'logoutRedirect'=&gt;array('controller'=&gt;'users', 'action'=&gt;'login'),
          'authError'=&gt;"Members Area Only, Please Login…",
          'authorize'=&gt;array('Controller')
      )
    );
  
  
         public function isAuthorized($user) {
              // regular user can access the file uploads area
          if (isset($user['role']) &amp;&amp; $user['role'] === 'regular') {
              return true;
               }
  
               // Default deny
                  return false;
              }
  
  
  
  
  
  function index() {
          $this-&gt;set('users', $this-&gt;Upload-&gt;find('all'));
  
  }
  
  
  
  
  // Handling File Upload Function and updating uploads database
  
  
      public function add() {
  
          if(!empty($this-&gt;data)){
  
              $file = $this-&gt;request-&gt;data['Upload']['file'];
              if ($file['error'] === UPLOAD_ERR_OK){
              $this-&gt;Upload-&gt;save($this-&gt;data); 
                  if(move_uploaded_file($file['tmp_name'],APP.'webroot/files/uploads'.DS.$this-&gt;Upload-&gt;id.'.mp4')) 
                  {
                      $this-&gt;redirect(array('controller' =&gt; 'Uploads', 'action' =&gt; 'add'));
                      $this-&gt;Session-&gt;setFlash(__('&lt;p class="uploadflash"&gt;The upload has been saved&lt;/p&gt;', true));
  
  
                      }   }else {
  
                          $this-&gt;Session-&gt;setFlash(__('&lt;p class="uploadflash"&gt;The upload could not be saved. Please, try again.&lt;/p&gt;', true));
  
                              }
  
                  }
                  }   
  
  function browse () {
          // Find all in uploads database and paginates
  $this-&gt;paginate = array(
      'limit' =&gt; 5    ,
      'order' =&gt; array(
          'name' =&gt; 'asc'
      )
      );
      $data = $this-&gt;paginate('Upload');
      $this-&gt;set(compact('data'));
  
  
       }
  
  function recentuploads () {
  $uploads =  $this-&gt;Upload-&gt;find('all', 
      array('limit' =&gt;7,
      'order' =&gt; 
          array('Upload.date_uploaded' =&gt; 'desc')));
      if(isset($this-&gt;params['requested'])) { 
           return $uploads; 
           } 
              $this-&gt;set('uploads', $uploads); 
  }
  
  function watch ($id = null){
  $this-&gt;set('isAjax', $this-&gt;RequestHandler-&gt;isAjax());
  
      // Read Uploads Table to watch video
      $this-&gt;Upload-&gt;id = $id;      
      $this-&gt;set('uploads', $this-&gt;Upload-&gt;read());
  
  
  
      // Load Posts Model for comments related to video
              $this-&gt;loadModel('Post');
      $this-&gt;paginate = array(
                  'conditions' =&gt; array(
                  'uploadid' =&gt; $id),
                  'limit' =&gt; 4
                  );
  
      $data = $this-&gt;paginate('Post');
      $this-&gt;set(compact('data'));
  
  
  
  
  
  
  // Load Likes Model and retrive number of likes and dislikes
  
      $this-&gt;loadModel('Like');
  
      $related_likes = $this-&gt;Like-&gt;find('count', array(
          'conditions' =&gt; array('uploadid' =&gt; $id)
      ));
      $this-&gt;set('likes', $related_likes);
      }
  
  
  
  
  }
      ?&gt;
  </code></pre>
  
  <p>Any suggestions?</p>