-
-
Notifications
You must be signed in to change notification settings - Fork 3.8k
[功能请求] 支持目录直链功能 #3174
Copy link
Copy link
Closed
Labels
Milestone
Description
需求描述
新增目录直链功能 类似123云盘
启用后,可通过 固定前缀 URL + 文件路径 直接访问目录内的任意文件, 无需为每个文件单独生成直链
示例
https://example.com/f/{hashID}/{路径}
例如为AAA文件夹开启目录直链功能
文件路径为 AAA/test/test.jpg
对应目录直链: https://example.com/f/xxxxx/AAA/test/test.jpg
使用场景
- 方便网站大批量引用资源
- 文件更新时无需重新生成直链
期望效果
- 支持启用 / 禁用目录直链
- 不影响原有单文件直链逻辑
- 在开启目录直链功能的目录内, 复制文件直链 可选复制
目录直链和 生成常规直链
Reactions are currently unavailable