2020-12-17 22:07:33 917次浏览 0条回答 0 悬赏 20 金钱

RT,yii2-starter-kit框架下,想在前端上传文件存储到storage,在frontend下视图中执行如下代码:

                        Upload::class,
                        [
                            'url' => ['/file/storage/upload'],
                            'maxFileSize' => 10000000, // 10 MiB
                        ]);
                    ?>

6ae879ea9bbecadff4b6c53d20a5fc2.png

Upload组件执行后得到的path是:http://localhost/ofc/frontend/web/index.php/file/storage/upload?fileparam=_fileinput_w1

如何能得到backend的path:http://localhost/ofc/banckend/web/index.php/file/storage/upload?fileparam=_fileinput_w1

请各路大神指点12..

    没有找到数据。
您需要登录后才可以回答。登录 | 立即注册
amrozhou
副董事长

amrozhou

注册时间:2015-02-25
最后登录:2021-06-03
在线时长:96小时32分
  • 粉丝26
  • 金钱32351
  • 威望40
  • 积分33711

热门问题