baidu / baidu/amis

下载文件功能报错:Should have "Content-Disposition" in Header

Open
#11,279 3 comments 0 reactions 1 assignee Claimed by @2betop View on GitHub
need confirm
Dominant language
TypeScript
Stars
18.9k
Forks
2.7k
PR merge metrics
No merged PRs in 30d

Description

#### 描述问题:
下载文件功能报错:Should have "Content-Disposition" in Header

使用的是最新版本amis": "6.9.0"就会出现问题,
6.7.0版本可以正常使用下载文件的功能(6.7.0下载功能也会有问题原文件8.8兆下载生成的文件大小翻了一倍,而且文件是损坏的打不开)

#### 截图或视频:
![1732765848325](https://github.com/user-attachments/assets/451b464e-6f71-43c6-8b02-8a97501d13d4)
![image](https://github.com/user-attachments/assets/cae57186-65ab-493a-b51b-3ade70e6f94e)
![image](https://github.com/user-attachments/assets/4c63b0da-0054-4632-9a32-37fdaa8fdd65)
![image](https://github.com/user-attachments/assets/c45ff541-6f9b-4397-9580-310fee00f76b)

可以的话,尽可能提供截图或视频来补充描述你的问题...

#### 如何复现(请务必完整填写下面内容):

1. 你是如何使用 amis 的?
`sdk`、`npm` 或`其他`...
npm
2. amis 版本是什么?请先在最新 beta 版本测试问题是否存在
amis": "6.9.0"
3. 粘贴有问题的完整 `amis schema` 代码:
```
code here...
```

4. 操作步骤
请简单描述一下复现的操作步骤...

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.