-
-
Notifications
You must be signed in to change notification settings - Fork 896
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
文件上传 format 第一个参数 files 为空数组 #547
Comments
你是通过拖拽、录音、点击上传按钮还是粘贴文本图片进行上传的呢? |
点击上传。 |
你这样打印了看一下输出
|
format 会将后端的 responseText 和文件一起传递给你,你转换为需要的 responseText 返回就可以了。
源代码
|
哦。我理解错了,不好意思 |
我使用的【3.7.0】,同样也存在这个问题 |
如果错误的话,把 code 设置为1,错误信息放在 msg 里面就可以了。 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
请先看《提问的智慧》,并尝试到黑客派搜寻资料解决问题。
编辑模式
请选择你遇到问题时使用的编辑模式(把正常情况模式删掉):
所见即所得模式
描述问题
在自定义后台上传返回的结果,使用 format 进行转换,但是第一个参数总是拿到空数组,原本我理解应该是原始的文件名数组。
期待的结果
期望返回原始文件名数组。
其他信息
这里的 files 我得到是空数组
The text was updated successfully, but these errors were encountered: