怎么理解存储图片地址和访问地址不同
来源:10-6 editor图片列表展示和分页多种方式实现
weixin_慕慕5408511
2020-12-24
UPLOAD = {
‘ext’:[ ‘jpg’,‘gif’,‘bmp’,‘jpeg’,‘png’ ],
‘prefix_path’:’/web/static/upload/’,
‘prefix_url’:’/static/upload/’
}
为什么存储要比访问多个web
写回答
1回答
-
编程浪子
2020-12-24
你好如下
例如 root路径是 /tmp/order + 配置prefix_path () = /tmp/order/web/static/upload/
然后就在 下面放文件

访问路径
域名是 http://127.0.0.1:8999(假如) + prefix_url 配置(/static/upload/)
就等于 http://127.0.0.1:8999/static/upload/

如果读取文件
00
相似问题


