我正在使用 meioupload 并且一切正常,直到我尝试制作缩略图。然后我只能看到一种 phpThumb 错误消息,上面写着
"C:/wamp/cakephp/vendors/phpTmub/img/uploads/product/filename/image.png" does not exist
我是 cakePHP 的新手,所以我以前从未遇到过这个问题。有谁知道我该怎么办?
这是我的模型代码:
var $actsAs = array(
'MeioUpload' => array(
'filename' => array(
'create_directory' => true,
'allowed_mime' => array('image/jpeg', 'image/pjpeg', 'image/png'),
'allowed_ext' => array('.jpg', '.jpeg', '.png'),
'zoomCrop' => true,
'thumbsizes' => array(
'normal' => array('width' => 400, 'height' => 300),
'small' => array('width' => 80, 'height' => 80,'maxDimension' => '', 'thumbnailQuality' => 100, 'zoomCrop' => true),
),
'default' => 'default.jpg'
)
));
更新:
我为 cakePHP 2.0 找到了特殊的 phpThumb,因此路径更改为:
"C:/wamp/cakephp/img/uploads/product/filename/image.png"
如果我在浏览器中打开默认图像,则路径如下:
localhost:8080/cakephp/img/uploads/product/filename/image.png
谢谢