ok im still trying and i think im close:
Im my add action i have:
...
$this->Test->create();
$this->data['Test']['foreign_id'] = '';
$this->data['Test']['dir'] = 'listings';
$this->data['Test']['class'] = '/listings';
$this->data['Test']['filename'] = $this->data['Test']['logo'];
/*
$this->data['Test']['foreign_id'] = null;
$this->data['Test']['dir'] = 'listings';
//$this->data['Test']['class'] = 'listings';
$this->data['Test']['filename'] = $this->data['Test']['dir'] . '/' .
$this->data['Test']['logo'];
*/
if ($this->Test->save($this->data)) {
...
My model is defined as:
...
var $actsAs = array('ImageUpload' => array(
'logo' => array (
'allowedMime' => array('image/jpeg', 'image/gif',
'image/png',
'image/bmp'),
'allowedExt' => array('jpeg', 'jpg', 'gif', 'png',
'bmp'),
'versions' => array('small', 'medium')
)
)
);
...
but im havig the following errors:
app/models/behaviors/image_upload.php (line 513)
convert /myPath/httpdocs/app/uploads//btn.png -resize 50x50\> /srv/www/
vhosts/mgc.sukialogic.com/httpdocs/app/webroot/img//listings//
t_btn.jpg
I think it is because
app/models/behaviors/image_upload.php (line 513)
../uploads/HERE IS THE EMPTY PROBLEM/btn.png... -resize 50x50\> /srv/
www/vhosts/mgc.sukialogic.com/httpdocs/app/webroot/img/HERE IS THE
DOUBLE SLASH/listings//t_btn.jpg
Please, any help is welcome.
Thanks in advance.
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---