Closed bytecc-coder closed 5 years ago
确保 https://你的域名/ueditor/server?action=config
能正确访问,如果不能,可能是因为你前置了其它中间件
接口返回上传成功
{state: "SUCCESS",…} original: "1.jpg" size: 385063 state: "SUCCESS" title: "/uploads/image/2019/03/31/126efe845a27d84bad1b88aa31f8bbfc.jpg" type: "" url: "http://myurl/storage/uploads/image/2019/03/31/126efe845a27d84bad1b88aa31f8bbfc.jpg"
但是实际上传失败,这是什么原因啊?
上面http://你的域名/ueditor/server?action=config 也能访问成功
接口返回上传成功
{state: "SUCCESS",…} original: "1.jpg" size: 385063 state: "SUCCESS" title: "/uploads/image/2019/03/31/126efe845a27d84bad1b88aa31f8bbfc.jpg" type: "" url: "http://myurl/storage/uploads/image/2019/03/31/126efe845a27d84bad1b88aa31f8bbfc.jpg"
但是实际上传失败,这是什么原因啊?
检查你的 storage/app/public 目录下。
多谢反馈~
/storage/uploads/image/2019/04/01/6d01382261599e90fa64f9e0abb58c26.jpg
检查上面目录下是有文件的,就是上传成功了,访问404,访问路径为
http://我的域名//storage/uploads/image/2019/04/01/6d01382261599e90fa64f9e0abb58c26.jpg
这是什么原因啊,是我需要哪里配置上传路径吗?我想要上传到public下,公开访问。
你需要仔细阅读文档,还有了解 Laravel 的使用。
$ php artisan storage:link
KeepXin notifications@github.com于2019年4月1日 周一下午5:31写道:
多谢反馈~ /storage/uploads/image/2019/04/01/6d01382261599e90fa64f9e0abb58c26.jpg 检查上面目录下是有文件的,就是上传成功了,访问404,访问路径为
http://我的域名//storage/uploads/image/2019/04/01/6d01382261599e90fa64f9e0abb58c26.jpg http://xn--eqrt2gyzlkkv//storage/uploads/image/2019/04/01/6d01382261599e90fa64f9e0abb58c26.jpg 这是什么原因啊,是我需要哪里配置上传路径吗?我想要上传到public下,公开访问。
— You are receiving this because you commented.
Reply to this email directly, view it on GitHub https://github.com/overtrue/laravel-ueditor/issues/65#issuecomment-478506547, or mute the thread https://github.com/notifications/unsubscribe-auth/ABZ3YFapHtnCPVu03_aYXRP8O-q7BOpwks5vcdHlgaJpZM4cLoUQ .
请求后台配置项http错误,上传功能将不能正常使用!