hi,
*im tryin' with this plugin, i guess im missin' something*

        var $actsAs = array(

                                        'Media.Transfer' => array(
                                                'trustClient'     => false,
                                                'destinationFile' => 
'articles:DS::uuid:',
                                                'baseDirectory'   => 
MEDIA_TRANSFER,
                                                'createDirectory' => true
                                        ),
                                    'Media.Media' => array(
                                        'metadataLevel'         => 2,
                                        'baseDirectory'         => MEDIA,
                                        'makeVersions'          => true,
                                        'filterDirectory'       => MEDIA_FILTER,
                                        'createDirectory'       => true,
                                    )

Array
(
    [Article] => Array
        (
            [tags] => jeff,cakemedia
            [listing_id] => 646
            [name] => my great article
            [description] => important
            [country_id] => 12
            [stiky] => 0
            [file] => Array
                (
                    [name] => jeff.png
                    [type] => image/png
                    [tmp_name] => /tmp/phpa55pUE
                    [error] => 0
                    [size] => 115453
                )
        )
)


$this->Article->save($this->data)

*that's fine, data is stored as i spected*

mysql> select id,name,dirname,basename from mgc_articles;
+----+---------+-------------------
+--------------------------------------+
| id | name    | dirname           |
basename                             |
+----+---------+-------------------
+--------------------------------------+
|  7 | hello | transfer/articles | 4a5e9df5-de98-4724-
a63b-47fb7f000105 |
+----+---------+-------------------
+--------------------------------------+

created    /media/transfer/articles/4a5e84f9-dd08-4901-
a740-48197f000105
created    /media/filter/s/transfer/articles/4a5e84f9-dd08-4901-
a740-48197f000105
created    /media/filter/m/transfer/articles/4a5e84f9-dd08-4901-
a740-48197f000105

*my problem is on edit() the main file is uploaded but versions
missing!*

created    /media/transfer/articles/4a5te4f9-dd08-4901-
a740-48197f000105

no versions were overwrite

ps: using 0.6beta

any tip welcome

--~--~---------~--~----~------------~-------~--~----~
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