MeioUpload和phpThumb()不存在错误
我目前正在使用CakePHP v2.2.1和MeioUpload 4.0以及phpThumb()来尝试为这些图像生成图像上传和缩略图。如果我在没有thumbsizes属性的情况下设置了我的MeioUpload和phpThumb()不存在错误,php,cakephp,phpthumb,cakephp-2.2,meio-upload,Php,Cakephp,Phpthumb,Cakephp 2.2,Meio Upload,我目前正在使用CakePHP v2.2.1和MeioUpload 4.0以及phpThumb()来尝试为这些图像生成图像上传和缩略图。如果我在没有thumbsizes属性的情况下设置了我的$actAs=array(),那么所有内容都可以上传,但是当我添加以下内容时: 'thumbsizes' => array( 'small' => array('width' => 165, 'height' => 115), 'medium' => array('
$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
要生成缩略图,我会收到一个错误,说明如下:
'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
我在网上尝试了几种不同的方法来解决这个问题,但似乎没有任何效果。我是cakephp新手,所以这可能是一个简单的解决方案,我只是没有连接点来找到解决方案。非常感谢您的帮助。决定使用此处找到的Miles J.插件。看来Meio的2.2.1版CakePHP有问题,一切又好了 把答案放在这个评论下面。。。