MeioUpload和phpThumb()不存在错误


MeioUpload and phpThumb() does not exist error

我目前正在使用CakePHP v2.2.1和MeioUpload 4.0以及phpThumb()来尝试为这些图像生成图像上传和缩略图。如果我在没有thumbsize属性的情况下设置$actAs = array(),那么一切都上传得很好,但当我添加以下内容时:

'thumbsizes' => array(
    'small' => array('width' => 165, 'height' => 115),
    'medium' => array('width' => 800, 'height' => 600)
),

为了生成缩略图,我得到了一个错误,说明如下:

"E:/xampp/htdocs/site/vendors/phpthumb/img/posts/image-name.jpg" does not exist

我在网上尝试了几种不同的方法来解决这个问题,但似乎都不起作用。我是cakepp的新手,所以这可能是一个简单的解决方案,我只是不想把点连接起来找到解决方案。如有任何帮助,我们将不胜感激。

决定使用Miles J.插件,在这里找到milesj.me/code/cakephp/uploader。看来Meio的2.2.1版cakephp有问题,一切又好了!