Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

存储位置不对 #42

Closed
bubifengyun opened this issue Jul 22, 2017 · 2 comments
Closed

存储位置不对 #42

bubifengyun opened this issue Jul 22, 2017 · 2 comments

Comments

@bubifengyun
Copy link
Contributor

上传图片错误,使用 firebug 查找问题,发现保存的链接位置不对。排除了一下问题。

  • 文件夹没有访问权限?有访问权限。
  • 没有上传成功?上传成功。
  • 文件名字也是对的,也可以读。

问题如下,正常存储,网站的网址是 http://localhost/www/yii2cmf-master/web/index.php?r=user%2Fsettings%2Favatar ,没有修改网址。但是图片的网址是 http://localhost/storage/upload/20170722/Jjjq3dSrHE94hFy388MKYoDqJ2cI0ro1YAlLFicN.jpg
发现没有弄对地址。是引用的时候地址不对。我在找,但是没有找到问题。

@yidashi
Copy link
Owner

yidashi commented Jul 23, 2017

这个应该是你安装的时候site_url没写对,.env里改下网站地址

@bubifengyun
Copy link
Contributor Author

我是默认的,一路确定下来。看来是需要改一改了。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants