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

图片上传有计划添加进来吗? #137

Closed
bulolo opened this issue Apr 25, 2016 · 15 comments
Closed

图片上传有计划添加进来吗? #137

bulolo opened this issue Apr 25, 2016 · 15 comments

Comments

@bulolo
Copy link

bulolo commented Apr 25, 2016

http://weui.github.io/weui/#/cell
这个里面的图片上传有计划添加进来吗?

@airyland
Copy link
Owner

你是指纯布局还是把图片预览上传也做了?

@bulolo
Copy link
Author

bulolo commented Apr 25, 2016

纯布局,官方是直接放到cell

@bulolo
Copy link
Author

bulolo commented Apr 25, 2016

当然,要是图片预览上传有的话最好啦。哈哈哈。

@airyland
Copy link
Owner

上传要配合JS SDK,而且JS SDK其实不支持这样的进度显示。如果用原生上传,Android下又用不了了。

所以暂时就只支持布局吧 😂

@bulolo
Copy link
Author

bulolo commented Apr 25, 2016

@airyland
Copy link
Owner

不能上传不是浏览器内核问题,是Android内核的问题。Android 4.4+移除了webview的文件上传功能。
😓

@unclay
Copy link
Collaborator

unclay commented Apr 25, 2016

是4.4,4.4.1,4.4.2的webview移除了文件上传功能,被别人鄙视后4.4.3又加回来,所以目前只有4.4,4.4.1,4.4.2三个版本不支持文件上传

@airyland
Copy link
Owner

@unclay 这样的情况更复杂了,想要兼容所有版本只能统一用JS SDK,但是对于非微信外的浏览器又得用另一套上传,:sad:

@progrape
Copy link

@airyland X5 内核帮忙补了这个坑,如果使用场景只是在微信内的话,可以放心使用 <input type="file"/>

@muei
Copy link

muei commented May 10, 2016

我觉得挺好的,建议可以整合dropzone。这个基本都会用到

@airyland
Copy link
Owner

@ohohco 醒醒,移动端哪来的拖拽上传?

@muei
Copy link

muei commented May 10, 2016

@airyland 我桌面也用vux,虽然有些桌面不能用。因为内部系统,要求不需要那么高。http://www.dropzonejs.com/ 是说的这个

@airyland
Copy link
Owner

@ohohco 我知道,vux是完全不考虑PC端的,会导致体积变大,不会支持拖拽上传。

@airyland
Copy link
Owner

目前WeUI的样式少了一个删除操作,因为允许上传多张而且会有上传失败的情况,那么应该允许用户删除某些不想要的图片。

@airyland
Copy link
Owner

Moved to #139

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

5 participants