After almost 7 days of debuggin is done!

The problem was the fullpath of the convert command, i just
modified by hand the file image_upload.php, in the line 508 i
added the path to convert:
$command = "/usr/local/bin/convert $input $params $output";


My model is:
<?php

class Test extends AppModel {

        var $name = 'Test';

        var $actsAs = array('ImageUpload' => array(
                                        'fileField' => 'logo',
                                        'allowedMime'   => array('image/jpeg', 
'image/gif', 'image/png',
'image/bmp'),
                                        'allowedExt'    => array('jpeg', 'jpg', 
'gif', 'png', 'bmp'),
                                        'baseDir' => '{APP}uploads/',
                                        'versions'              => 
array('small' => array(
                                                                        
'vBaseDir' =>'{IMAGES}',
                                                                        
'vDirFormat' => '{$class}/{$foreign_id}/',
                                                                        
'vFileFormat' => 's_{$filename}',
                                                                        
'callback' => array('resize', 75, 75)
                                                                )
                        )
                )
        );

}

?>


My add action is:

        function add() {
                if (!empty($this->data)) {
                        $this->Test->create();

                        $this->data['Test']['foreign_id']   = 
$this->user['User']['id'];
                        $this->data['Test']['class']    = 'tests';
                        $this->data['Test']['filename']         =  
$this->data['Test']['logo'];

                        if ($this->Test->save($this->data)) {
                                $this->Session->setFlash(__('The Test has been 
saved', true));
                                $this->redirect(array('action'=>'index'));
                        } else {
                                $this->Session->setFlash(__('The Test could not 
be saved. Please,
try again.', true));
                        }
                }
        }


Thank you!
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to