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

FormModel不支持上传文件嘛,应该如何处理? #79

Closed
galaa2011 opened this issue Sep 10, 2015 · 3 comments
Closed

FormModel不支持上传文件嘛,应该如何处理? #79

galaa2011 opened this issue Sep 10, 2015 · 3 comments

Comments

@galaa2011
Copy link

No description provided.

@chestnutchen
Copy link
Member

上传文件我们是通过src/ui/Uploader这个控件来处理的,具体可以看一下这个控件

@galaa2011
Copy link
Author

Uploader这个控件我看了,我是想在自己的form中添加文件,并与其他信息一起提交。而Uploader貌似是自己创建了一个新的form,并自己提交。

@Justineo
Copy link
Member

是的,我们这边的逻辑都是文件异步上传好,拿返回的路径和表单一起提交的。因为接口都是 AJAX 的,所以你如果要用 XHR2 做文件提交,那么我们目前的提交流程是没法用的。

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

3 participants