0

I am currently using the MeioUpload Plugin located here:

MeioUpload

The file uploading is all working like a charm, but the thumbnails are not being generated.

Has anyone else had this issue? I am using cakePHP 2.1.

I have followed the readme file strictly.

4

1 回答 1

0

I was able to get this working by adding this code into the model:

class Image extends AppModel {
    var $actsAs = array(
        'MeioUpload.MeioUpload' => array(
            'filename' => array(
                'thumbsizes' => array(
                    '320x90' => array(
                        'width' => 320,
                        'height' => 90
                    )
                )                   
            )
        )
    );

}

You can vary the size of the thumbnail with the given parameters above.

于 2012-08-27T21:36:00.833 回答