We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
已知文档处写明:data支持的文件类型只有Object/String/ArrayBuffer</code>这个真跟我没啥关系 0.0
data支持的文件类型只有Object/String/ArrayBuffer</code>这个真跟我没啥关系 0.0
上传多图片file[]后端这样子接收,一般都会这么操作哇,先说一般情况下~(且携带其他信息,一同formData提交)
尝试使用post请求,JSON对象作为data参数,设置header Content-type: ''application/x-www-form-urlencoded; charset=UTF-8" 成功上传格式 FormData,
请问作者,如何去实现可上传FormData参数呢?(这个问题我看下源码,不知道是从那部开始做转换的呢)
The text was updated successfully, but these errors were encountered:
这个问题可以加QQ详细沟通一下;370306150 具体可以分几个场景;
370306150
upload
files
formData
Sorry, something went wrong.
这个问题可以加QQ详细沟通一下;370306150 具体可以分几个场景; formData 传参。没有file 文件。 置header Content-type: ''application/x-www-form-urlencoded; charset=UTF-8" 成功上传格式 FormData formData 传参。 有file 文件。 这时候就要用luch-request 里的upload [方法(等同于uni的uni.uploadFile(OBJECT))。uni.uploadFile(OBJECT)。 多file 同时上传。使用files参数。其他formData 参数,使用formData这个参数
好的,今晚试试~感谢
No branches or pull requests
已知文档处写明:
data支持的文件类型只有Object/String/ArrayBuffer</code>这个真跟我没啥关系 0.0
场景需求:
上传多图片file[]后端这样子接收,一般都会这么操作哇,先说一般情况下~(且携带其他信息,一同formData提交)
操作 :(H5端下测试)
尝试使用post请求,JSON对象作为data参数,设置header Content-type: ''application/x-www-form-urlencoded; charset=UTF-8"
成功上传格式 FormData,
问题:
请问作者,如何去实现可上传FormData参数呢?(这个问题我看下源码,不知道是从那部开始做转换的呢)
The text was updated successfully, but these errors were encountered: