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

[upload] 能否增加上传的responseType的参数 #3687

Closed
Makaite opened this issue Dec 5, 2023 · 3 comments
Closed

[upload] 能否增加上传的responseType的参数 #3687

Makaite opened this issue Dec 5, 2023 · 3 comments
Assignees
Labels
🙅‍♂️ invalid need more info need more information to resolve issue

Comments

@Makaite
Copy link

Makaite commented Dec 5, 2023

这个功能解决了什么问题

当需求是上传后返回对应错误文件并下载时,t-upload并不能很好的返回的错误文件的下载,原因是因为请求发出时没有设置reponseTyoe为blob,所以是否可以增加这个参数的设置功能,以便做到这种需求场景的适配呢?

你建议的方案是什么

在t-upload组件传参中增加一个responseType的设置参数

Copy link
Contributor

github-actions bot commented Dec 5, 2023

👋 @Makaite,感谢给 TDesign 提出了 issue。
请根据 issue 模版确保背景信息的完善,我们将调查并尽快回复你。

@uyarn uyarn changed the title [t-uplaod] 能否增加上传的responseType的参数 [upload] 能否增加上传的responseType的参数 Dec 5, 2023
Copy link
Contributor

github-actions bot commented Dec 5, 2023

♥️ 有劳 @PengYYYYY @chaishi 尽快确认问题。
确认有效后将下一步计划和可能需要的时间回复给 @Makaite

@chaishi
Copy link
Collaborator

chaishi commented Dec 16, 2023

ResponseType 应该是指响应结果的响应头
Upload 组件一般是设置请求头?通过参数 headers 进行设置。

如果方便的话,辛苦明确一下,具体期望达到的请求效果是什么样的,比如描述一下:请求头,请求参数等等

@chaishi chaishi added need more info need more information to resolve issue 🙅‍♂️ invalid labels Dec 16, 2023
@uyarn uyarn closed this as completed Jan 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🙅‍♂️ invalid need more info need more information to resolve issue
Projects
None yet
Development

No branches or pull requests

4 participants