Skip to content
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

@Form不支持multipart/form-data #1

Closed
kevin23Hey opened this issue Apr 11, 2019 · 2 comments
Closed

@Form不支持multipart/form-data #1

kevin23Hey opened this issue Apr 11, 2019 · 2 comments

Comments

@kevin23Hey
Copy link

有个需求请抽空实现下多文件上传的支持,感谢,,期待更新:)

@dadiyang
Copy link
Owner

不好意思,现在才看到。好的。我抽空实现一下。

@dadiyang
Copy link
Owner

Form 注解是为提交普通表单设计的。我添加了一个 MultiPart 类来支持多文件上传的 multipart/form-data 请求。
只需要你把方法的参数设置为 MultiPart 然后实际调用的时候将表单相关的信息封装到 MultiPart.Part 这个类里就可以。
具体可查看文档说明。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants