title: issues with media plugin generator behavior
body: <p>I'm new to cakePHP and MVC as well so maybe I got some major design flaws in my attempt. Excuse my spelling as well since im not a native speaker.</p>
  
  <h3>What I'm trying to do:</h3>
  
  <p>I want to create a view where the user can re-crop uploaded images using the Jcrop Javascript lib and the <a href="https://github.com/bmcclure/CakePHP-Media-Plugin" rel="nofollow">Media Plugin from David Persson</a>.</p>
  
  <h3>Setup:</h3>
  
  <p>All mediafiles are stored by the Attachment Model which is based of the one shipped with the Mediaplugin.
  Other Models can use the Attachment Model to store mediafiles.</p>
  
  <h3>My Attempt:</h3>
  
  <ol>
  <li>(<em>View/Attachments/admin_edit.ctp</em>): Gather cropdata, data will injected to the form via javascript</li>
  <li>(<em>Controller/AttachmentsController.php</em>)
  <ul>
  <li>Save attachment data</li>
  <li>if attachment data was saved: process cropdata with use of <code>$this-&gt;Attachment-&gt;makeVersion($file, $instructions);</code></li>
  <li>redirect to attachments indexview using <code>$this-&gt;redirect(array($admin = true, 'controller' =&gt;
  'attachments', 'action' =&gt; 'index'));</code></li>
  </ul></li>
  </ol>
  
  <h3>Issue:</h3>
  
  <p>My general attempt is working, so all images get croped like i want them to but the following redirect isn't fired, instead a weird redirect to current action is executed somewhere.
  I narrowed it down to the makeVersion() method, when i comment that out, the attachment gets still saved and the redirect is working like it's supposed to.</p>
  
  <p>So it seems that makeVersion() has some weird sideeffect.</p>
  
  <p>Since i get redirected it is really hard to debug because i cannot inspect the request or check for errors.
  I tried with using debug();exit; to narrow it further down inside of the makeVersion() method but i really don't get this, theres no redirects called anywhere inside.</p>
  
  <h3>Code:</h3>
  
  <p>For anyone still reading and interested in helping me, check out the source <a href="https://github.com/KingLoui/mediatest/blob/master/app/Controller/AttachmentsController.php" rel="nofollow">here</a></p>
  
  <p>Thanks in advance for your effort!
  Cheers
  Mathias</p>