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.44k stars 5.12k forks source link

使用S3存储桶时无法加载pdf #6520

Open ricolxwz opened 1 month ago

ricolxwz commented 1 month ago

Please make sure of the following things

AList Version / AList 版本

v3.35.0

Driver used / 使用的存储驱动

S3

Describe the bug / 问题描述

S3内的pdf文件无法使用pdf.js预览, 但是可以下载, S3的pdf的url在浏览器内也可以正常打开, 但是就是无法pdf.js预览, 现实错误为: DF.js v3.0.44 (build: 6852001b0) Message: NetworkError when attempting to fetch resource.

Reproduction / 复现链接

CleanShot 2024-05-25 at 21 22 51@2x

Config / 配置

https://github.com/ricolxwz/integrated-scripts/blob/master/Alist/setup.sh

image

CleanShot 2024-05-25 at 21 21 03@2x

Logs / 日志

No response

welcome[bot] commented 1 month ago

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

ricolxwz commented 1 month ago

经测试, 在docker下依然是这样的情况, 应该不是nginx配置的问题