Skip to content

Upload组件response是否经过转换变成string #8096

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

Open
1 task
984958198 opened this issue Mar 21, 2025 · 1 comment
Open
1 task

Upload组件response是否经过转换变成string #8096

984958198 opened this issue Mar 21, 2025 · 1 comment

Comments

@984958198
Copy link

  • I have searched the issues of this repository and believe that this is not a duplicate.

Version

4.2.6

Environment

windows11、Google Chrome、vue3

Reproduction link

https://next.antdv.com/components/upload-cn

Steps to reproduce

请求响应 content-length: 112465
控制台打印response : typeof='string' length=107088

What is expected?

Upload组件上传文件,服务端也返回文件能够自动下载或者能够拿到原始response

What is actually happening?

response是否被处理?即便我用window.URL.createObjectURL(blob)方式下载的文件也是错的,能保证服务端过来的文件是完好的用get请求试过

@984958198
Copy link
Author

能够将responseType: 'blob'设置进去好像也行,怎么设置不清楚

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant