baidu / baidu/amis

下载操作无法下载文件

Open
#11,636 3 comments 1 reaction 0 assignees View on GitHub
need confirm
Dominant language
TypeScript
Stars
18.9k
Forks
2.7k
PR merge metrics
No merged PRs in 30d

Description

#### 描述问题:

下载操作无法下载文件
#### 截图或视频:

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

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

1. 你是如何使用 amis 的?
npm

2. amis 版本是什么?请先在最新 beta 版本测试问题是否存在
"amis": "^6.9.0",

3. 粘贴有问题的完整 `amis schema` 代码:
```
{
"type": "action",
"label": "下载",
"id": "u:ed27e9197d7b",
"actionType": "download",
"api": {
"url": "/test/download",
"method": "get",
"requestAdaptor": "",
"adaptor": "",
"messages": {},
"responseType": "blob"
}
}
```

4. 操作步骤
配置了行为按钮是下载行为,点击后无法下载文件

Contributor guide

No contributing guide indexed for this repository

Research direction

Reproduce the issue with the provided amis action schema on amis 6.9.0 and inspect the download action request to `/test/download`, including its `responseType: "blob"` setting. Confirm whether the configured action can download the returned file, and document the server response or browser behavior when it cannot.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
api, frontend
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.