开源中国 2018 年度最后一场技术盛会邀你来约~错过就要等明年啦!点此立即预约

ThinkGem / JeeSite 4.xJava

Metrics
0
Watch 1.8k Star 3.7k Fork 1.8k

/userfiles/userfiles

Open
zhu  Created at

部署了然后出现了双路径什么鬼,导致前端显示不出来 09-12 17:45:59.971 DEBUG [com.jeesite.modules.sys.web.UserfilesController] - File: /data/wwwroot/default/cxjdd/userfiles/userfiles/system/images/20180912/20170104111721464353463336477_$1536745360521025921.jpg

6732_thinkgem 1029371_smallyaohailu total 4 participants

Comments (6)

6732_thinkgem
ThinkGem 2018-09-12 23:37 owner

指定的baseDir不要包含userfiles

zhu 2018-09-13 09:54

@ThinkGem 配置的没啥问题,上传也没问题能回显,但是就是这个列表里的地址有问题。阿里阿多 jeesite.yml 配置项

baseDir: /root/jeesite

日志打印上传和列表

09-13 09:34:09.371 DEBUG [com.jeesite.modules.sys.web.UserfilesController] - File: /root/jeesite/userfiles/system/images/20180913/timg_$1536802449240045044.jpg 09-13 09:34:14.144 DEBUG [com.jeesite.modules.sys.web.UserfilesController] - File: /root/jeesite/userfiles/userfiles/system/images/20180913/timg_$1536802449240045044.jpg

ue列表显示如下

<img width="113" src="/web/userfiles//userfiles/system/images/20180913/timg_$1536802449240045044.jpg?noCache=jlzwt5zd" _src="/web/userfiles//userfiles/system/images/20180913/timg_$1536802449240045044.jpg">

接口调用返回数据 https://www.cxjdsjh.top/web/a/file/ueditor/listimage?start=0&size=100&noCache=1536803205344

{"state": "SUCCESS","total": 3,"start": 0, list: [{"state": "SUCCESS","url": "/web/userfiles//userfiles/system/images/20180913/timg_$1536800796401003102.jpg"},{"state": "SUCCESS","url": "/web/userfiles//userfiles/system/images/20180913/timg_$1536801635672039213.jpg"},{"state": "SUCCESS","url": "/web/userfiles//userfiles/system/images/20180913/timg_$1536802449240045044.jpg"} ]}

1029371_smallyaohailu
姚海陆 2018-09-16 17:22 member

basedir路径。。。

1029371_smallyaohailu
姚海陆 2018-09-16 17:24 member

确实有问题..。我把状态调整下

1029371_smallyaohailu
姚海陆 2018-09-16 17:43 member

@zhu 这个bug解决了吗?周一一起看下?应该是bug

jeesite小白 2018-12-01 19:00

兄弟,你的配置文件是怎么配置的呢?我这里配置成这样,但是上传时提示成功,但是回显不了,去这个路径下也找不到上传的文件。输入图片说明

Sign in and comment

Assignee
Labels
Not set
Milestone
Branch
Scheduled start
Not set
Scheduled end
Not set
Top level
Priority

Help Search