-
-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
上传图片,获取formdata里面的参数问题 #3538
Comments
文档里面写了,file 要放在最后。 因为解析是顺序执行的,当你 file 在前面的时候, |
那你知道怎么解决吗,用了ctx.multipart({ autoFields: true })好像也没法解决 |
调整前端的顺序 |
如果你对 stream 不熟悉,可以直接用 file 模式 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
上传图片时,用ctx.getFileStream()获取流信息。
前端如果传递下列参数
用stream.fields可以拿到isOverSea参数
但是如果两个参数传递顺序转换一下,如下
是取不到isOverSea参数
不知道是什么原因导致的
What happens?
最小可复现仓库
复现步骤,错误日志以及相关配置
相关环境信息
The text was updated successfully, but these errors were encountered: