Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

别名下文件不能下载 #7521

Open
4 tasks done
meteor614 opened this issue Nov 20, 2024 · 4 comments
Open
4 tasks done

别名下文件不能下载 #7521

meteor614 opened this issue Nov 20, 2024 · 4 comments
Labels
bug Something isn't working

Comments

@meteor614
Copy link

Please make sure of the following things

  • I have read the documentation.
    我已经阅读了文档

  • I'm sure there are no duplicate issues or discussions.
    我确定没有重复的issue或讨论。

  • I'm sure it's due to AList and not something else(such as Network ,Dependencies or Operational).
    我确定是AList的问题,而不是其他原因(例如网络依赖操作)。

  • I'm sure this issue is not fixed in the latest version.
    我确定这个问题在最新版本中没有被修复。

AList Version / AList 版本

v3.39.4

Driver used / 使用的存储驱动

webdav

Describe the bug / 问题描述

原始目录下文件是能下载的,但设置的别名不能正常下载。下载下来的都是预览页的html,并非文件内容本身。
查看alist的访问日志(如附件截图),发现每次下载文件被定向到预览页了(/p/XXX),应该定向至下载页(/d/XXX)才能正常下载

Reproduction / 复现链接

暂不提供

Config / 配置

image

Logs / 日志

image
@meteor614 meteor614 added the bug Something isn't working label Nov 20, 2024
Copy link

See

  1. 78% 别名下文件不能预览 #7242

@j2rong4cn
Copy link
Contributor

本地存储只能代理,所以/p和/d是一样的处理方式。我试了能正常播放、下载,无法复现

@meteor614
Copy link
Author

本地存储只能代理,所以/p和/d是一样的处理方式。我试了能正常播放、下载,无法复现

我试过webdav,夸克网盘,都不能下载,但百度网盘没问题。本地存储新版本我没测试过,待会儿试试

@meteor614
Copy link
Author

meteor614 commented Nov 22, 2024

本地存储只能代理,所以/p和/d是一样的处理方式。我试了能正常播放、下载,无法复现

我试过webdav,夸克网盘,都不能下载,但百度网盘没问题。本地存储新版本我没测试过,待会儿试试
我用的是群晖上docker的xhofe/alist:lastest版本。刚试了下本机存储,别名挂了两个本机存储,还是一样的问题,下载下来的文件都是这个内容:

<!DOCTYPE html>
<html lang="en" translate="no">
  <head>
    
    <meta charset="utf-8" >
    <meta name="viewport" content="width=device-width, initial-scale=1" >
    <meta name="referrer" content="same-origin" >
    <meta name="generator" content="AList V3" >
    <meta name="theme-color" content="#000000" >
    <meta name="google" content="notranslate" >
………………

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants