Skip to content

Docs(docx, xlsx...) download from docsify server change and can not be open correct. #1658

Closed
@Chernfalin

Description

Bug Report

Docs(docx, xlsx...) download from docsify server can not be open correct, change link from markdown to html5 download link work fine.

Steps to reproduce

Put some file to docsify server, such as a docx file, use markdown link for download, such as :
[a docx file](./folder/file.docx)
Downloaded this docx file frome the link, the file content change and can not be open by office word.
Change the markdown link to html5 stye, such as:
<a href='ip:port/file.docx' download>file</a>(must include "download")
It have no any problem.

What is current behaviour

docx/xlsx file download frome docsify broke(file size bigger than the raw).

What is the expected behaviour

Just download and don't change the file content.

Other relevant information

  • Your OS:
  • Node.js version:
  • npm/yarn version:
  • Browser version:
  • Docsify version: 4.12.1
  • Docsify plugins:

Metadata

Assignees

No one assigned

    Labels

    wait for informationsomething is not clear, waiting for the author of the issue/pr

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions