Cloudreve Source link of office documents downloads zip file without the document

44u64gxh  于 5个月前  发布在  其他
关注(0)|答案(4)|浏览(58)

Describe the bug
When I try to download Office file ex docx, xlsx

To Reproduce
Steps to reproduce the behavior:

  1. Enable get source link
  2. Try to download the file from the source link
  3. It will start to download zip file without the document

Expected behavior
Download the file ex docx or xslx

Screenshots

Desktop (please complete the following information):

  • OS: Windows
  • Browser Edge
  • Version [e.g. 22]

Additional context
I will leave this link working if you want to try.
Doc1.docx

vcudknz3

vcudknz31#

I think the essence of docx is a compressed package, and it can be read normally by changing the extension back to docx.

ryhaxcpt

ryhaxcpt2#

It seems to be something wrong with the header "Content-Type" .
Your folder name writes "Webdav"? Do you uploaded it with webdav or from the browser? Maybe it will be the fault of webdav i think?

fdx2calv

fdx2calv3#

This file specifically, is uploaded via the website.

yzxexxkh

yzxexxkh4#

alpine missing mime type, install mailcap can fix this

RUN apk update \
    && apk add --no-cache tzdata mailcap\
    && cp /usr/share/zoneinfo/Asia/Shanghai /etc/localtime \
    && echo "Asia/Shanghai" > /etc/timezone \
    && chmod +x ./cloudreve \
    && mkdir -p /data/aria2 \
    && chmod -R 766 /data/aria2

相关问题