alist-org / alist

🗂️A file list/WebDAV program that supports multiple storages, powered by Gin and Solidjs. / 一个支持多存储的文件列表/WebDAV程序,使用 Gin 和 Solidjs。
https://alist.nn.ci
GNU Affero General Public License v3.0
39.53k stars 5.14k forks source link

游客无法显示文件夹说明中的本地图片 #6419

Closed LanYangYang-114 closed 1 month ago

LanYangYang-114 commented 2 months ago

Please make sure of the following things

AList Version / AList 版本

v3.34.0

Driver used / 使用的存储驱动

本机存储

Describe the bug / 问题描述

以游客身份浏览时无法显示文件夹说明中的本地图片,使用其他身份(Admin和General账户)则能正常显示,尝试过删除元信息、替换别的图片都是这个现象 PixPin_2024-05-04_00-03-13

Reproduction / 复现链接

没有公网,给不了链接

Config / 配置

image image image

Logs / 日志

No response

welcome[bot] commented 2 months ago

Thanks for opening your first issue here! Be sure to follow the issue template!

liuycy commented 2 months ago

😂 因为 guset 用户设置了 基本路径,Markdown 里解析你的图片地址 default.jpg 没有带上这个基本路径

在没有修复之前,你可以尝试

LanYangYang-114 commented 2 months ago

😂 因为 guset 用户设置了 基本路径,Markdown 里解析你的图片地址 default.jpg 没有带上这个基本路径

在没有修复之前,你可以尝试

  • 修改 guest 用户的 基本路径 为 /
  • 使用绝对路径 /共享文件夹/公共文件夹/default.jpg

原来还可以这样调用🤔,我以为设置基本路径后无法访问到基本路径上一级的目录