uniapp的上传文件,formData存在name参数,怎么处理? #202
Unanswered
PineSongCN
asked this question in
Q&A
Replies: 3 comments 1 reply
-
默认的上传文件的方法 uploadFile 只支持post请求,请问是否考虑使用 https://github.com/zlyboy/wx-formdata 封装替换掉uploadFile |
Beta Was this translation helpful? Give feedback.
0 replies
-
问题请在discussion中提问。 就是在post提交的数据里,除了key值为files、file、filePath、name四个值之外的数据,都会作为额外参数自动放到formData里 |
Beta Was this translation helpful? Give feedback.
0 replies
-
formData参数也需要name字段,和file的name不同,怎么传值能给formData加上name? |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
请详细描述bug
config参数和formData参数混在了一起,请问怎么处理?
复现链接
No response
复现步骤
期望的表现
No response
alova 版本
2.9.0
设备/浏览器/浏览器版本
No response
额外的说明
No response
Beta Was this translation helpful? Give feedback.
All reactions