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

可以收集文件 #4

Open
crapthings opened this issue Apr 14, 2017 · 2 comments
Open

可以收集文件 #4

crapthings opened this issue Apr 14, 2017 · 2 comments

Comments

@crapthings
Copy link
Owner

crapthings commented Apr 14, 2017

这个貌似不太常见

绝大多数库都没有支持

@crapthings
Copy link
Owner Author

可以通过在 input file 上标记特殊字段来吧文件转换为 base64
这样后台得到 base64转成二进制

适合单个或多个小文件,不用挂三方上传库

@crapthings
Copy link
Owner Author

crapthings commented Apr 18, 2017

<input type="file" data-base64 />

意味着收集为 base64

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

No branches or pull requests

1 participant