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

uploader上传图片失败时,failure回调里可以拿到图片的base64结果,上传其它类型文件失败时failure回调里拿不到对应的base64结果 #3050

Open
fankcool opened this issue Apr 25, 2024 · 1 comment

Comments

@fankcool
Copy link

NutUI 包名

@nutui/nutui

NutUI 版本号

4.2.3

平台

h5

重现链接

Playground好像要用ts不会ts啊,抱歉

重现步骤

1、上传文件时,因为是内网应用所以没有URL。
2、选择文件然后上传,肯定会失败,这是正常的。
3、失败时,图片能拿到base64后的结果,其它类型的文件不行,比如video或txt文档。

期望的结果是什么?

图片外的其它类型文件上传失败时也能拿到文件base64后的结果

实际的结果是什么?

图片外的文件,拿不到base64的结果

环境信息

No response

其他补充信息

No response

@fankcool
Copy link
Author

Snipaste_2024-04-25_17-57-55
上面是图片上传失败时failure回调里responseText的打印,下图是其它类型文件上传时的打印,除了图片外其它类型的打印都没有base64的结果

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