2017-06-06 10:58:16 3601次浏览 1条回答 1 悬赏 10 金钱

2017-06-06_105243.png

在controller里actions配置imageRoot就只显示名字,不设置就显示图片

  return [
            'upload' => [
                'class' => 'kucha\ueditor\UEditorAction',
                'config' => [
                    //"imageUrlPrefix"  => "http://www.baidu.com",//图片访问路径前缀
                    "imagePathFormat" => "/upload/image/{yyyy}{mm}{dd}/{time}{rand:6}" ,//上传保存路径
                     "imageRoot" => Yii::getAlias("@image"),

            ],
        ]

最佳答案

  • pmd 发布于 2017-06-06 16:17 举报

    打开你的控制台,看看服务器返回的状态值

    没有找到数据。
您需要登录后才可以回答。登录 | 立即注册
卫沧澜
总监

卫沧澜

注册时间:2016-11-03
最后登录:2021-07-26
在线时长:44小时20分
  • 粉丝5
  • 金钱2215
  • 威望10
  • 积分2755

热门问题