Comments (2)
这个问题可以加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
这个参数
from luch-request.
这个问题可以加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
这个参数
好的,今晚试试~感谢
from luch-request.
Related Issues (20)
- 在请求之前拦截中执行 return Promise.reject(config) 取消请求,network中没有,但该请求最终还是执行了then逻辑 HOT 2
- TypeError: Cannot read property 'indexOf' of undefined
- 请求参数类型 HOT 1
- 响应拦截器异常触发 HOT 6
- 请求中断问题
- 关于luch-request全平台通用的问题 HOT 1
- err TypeError: relativeURL.replace is not a function HOT 2
- 【BUG】当 baseURL 为空时,请求 url 开头为 https://,实际请求 url 会变成本地 + https:// HOT 1
- 支持http2请求吗, HOT 4
- 后台返回流下载ecxel 下出来的文件会提示损坏 HOT 10
- 文档建议更新,比如安装和使用方式 HOT 2
- 安卓请求,nginx 配置http无法重定向https HOT 2
- 怎么监听 stream 流式响应数据的能力? HOT 4
- 请求锁功能 HOT 1
- 微信小程序,不支持吗?无法设置baseURL ,h5端能发请求 HOT 8
- 我有一个接口对接了chatgpt,数据是流式返回的,如何能流式的取数据? HOT 4
- 没有 PATCH请求方式吗 ? HOT 2
- 支持 async、await 嘛 HOT 1
- 有没有锁住请求或者是重试接口 HOT 1
- Feat: 希望增加lock和unlock方法,拦截请求
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from luch-request.