title: Cakephp Error using Miles J Uploader plugin
body: <p>I am currently trying to use Miles J plugin located here <a href="http://milesj.me/code/cakephp/uploader" rel="nofollow">http://milesj.me/code/cakephp/uploader</a> Although I have made great progress learning CakePhp, I am currently having a problem using the plugin and I would appreciate any help provided.</p>
  
  <p>I have followed all the necessary steps to use the plugin. It has been downloaded put on Plugin folder, I bootstrapped with CakePlugin::loadAll().</p>
  
  <p>So far so good. </p>
  
  <p>Next I have proceed to set up the table as indicated by the plugin developer.</p>
  
  <p>Ok, now back to my own code. I have the following set up: </p>
  
  <p><strong>images_controller.php , image.php and their views.</strong></p>
  
  <p>My goal now is to use the plugin inside those files as such:</p>
  
  <pre><code>App::import('Vendor', 'Uploader.Uploader');
  
  Class ImagesController extends AppController {
  
       var $components = array('Auth');
       var $helpers = array('Design');
       var $uses = array('Image', 'Uploader.Upload');
  
       function manage(){
           //here I show a simple upload form that uses the action saveimage 
       }
  
       function saveimage(){
  
            $this-&gt;Uploader = new Uploader();
            if(!empty($this-&gt;data)){
                 $this-&gt;Upload-&gt;save($this-&gt;data);
            }
  
  
       }
  
  
  
  }
  </code></pre>
  
  <p>Now, my model is set as follows </p>
  
  <pre><code>Class Image extends AppModel {
  
         public $useTable = 'uploads';
         public $actsAs = array(
          'Uploader.FileValidation' =&gt; array(
              'file' =&gt; array(
                  'extension' =&gt; array(
                      'value' =&gt; array('gif', 'jpg', 'jpeg'),
                      'error' =&gt; 'Only gif, jpg and jpeg images are allowed!'
                  ),
                  'minWidth' =&gt; 500,
                  'minHeight' =&gt; 500,
                  'required' =&gt; true
              ),
              'import' =&gt; array(
                  'required' =&gt; false
              )
          ),
          'Uploader.Attachment' =&gt; array(
              'file' =&gt; array(
                  'name' =&gt; 'uploaderFilename',
                  'uploadDir' =&gt; '/files/uploads/',
                  'dbColumn' =&gt; 'path',
                  'maxNameLength' =&gt; 30,
                  'overwrite' =&gt; true,
                  'stopSave' =&gt; false,
                  'transforms' =&gt; array(
                      // Save additional images in the databases after transforming
                      array(
                          'method' =&gt; 'resize',
                          'width' =&gt; 100,
                          'height' =&gt; 100,
                          'dbColumn' =&gt; 'path_alt'
                      )
                  ),
                  'metaColumns' =&gt; array(
                      'size' =&gt; 'filesize',   // The size value will be saved to the filesize column
                      'type' =&gt; 'type'        // And the same for the mimetype
                  )
              ),
              'import' =&gt; array(
                  'uploadDir' =&gt; '/files/uploads/',
                  'name' =&gt; 'uploaderFilename',
                  'dbColumn' =&gt; 'path',
                  'overwrite' =&gt; true,
                  'stopSave' =&gt; false,
                  'transforms' =&gt; array(
                      array(
                          'method' =&gt; 'scale',
                          'percent' =&gt; .5,
                          'dbColumn' =&gt; 'path' // Overwrite the original image
                      )
                  )
              )
          )
      );
  
  
  }
  
  }
  </code></pre>
  
  <p>On my model for testing purposes I have not changed anything but just copied and pasted the very same array as shown in the the Test/Model folder inside the plugin, which is meant to show the functionality of the plugin.</p>
  
  <p>The following confusion, errors or lack of understanding is taking place:</p>
  
  <p>My file is not being uploaded to the webroot/files/uploads folder
  My data is being inserted in the database, but not in a complete manner by leaving empty as shown:</p>
  
  <pre><code>id | caption | path | path_alt | created  |
  4  |         |      |          |2012:02:..|
  </code></pre>
  
  <p>Above, I expect the path to be saved, but it doesn't.</p>
  
  <p>I have to admit my confusion comes mainly from my inexperience using plugins, so I am aware I might be doing something wrong regarding my models or my configuration. </p>
  
  <p><strong>Any prompt help would be appreciated greatly as I have tried to work this out on my own without any success.</strong> </p>