社区
Web 开发
帖子详情
微信内置浏览器限制input file控件上传,求另外的实现方式
溯光
2014-09-28 12:01:02
如题,有个jsp页面要在微信上显示,并提供上传功能,但微信内置浏览器限制了input file控件,有没有大神提供一个另外的实现方式,用java处理上传。在线等回复
...全文
419
2
打赏
收藏
微信内置浏览器限制input file控件上传,求另外的实现方式
如题,有个jsp页面要在微信上显示,并提供上传功能,但微信内置浏览器限制了input file控件,有没有大神提供一个另外的实现方式,用java处理上传。在线等回复
复制链接
扫一扫
分享
转发到动态
举报
写回复
配置赞助广告
用AI写文章
2 条
回复
切换为时间正序
请发表友善的回复…
发表回复
打赏红包
溯光
2014-09-29
打赏
举报
回复
这个问题也有考虑过,不过看网上很多人都说用flash还是不能用,就没打算区研究了,
bichir
2014-09-28
打赏
举报
回复
网上一查就能看到都遇到了这个问题,具体是在iphone上微信中的file上传标签可用.在android中用不了,在android中可以用flash上传控制实现,但在iphone中又不支持flash。所以你在判断一下如果是android就调用flash来上传,是iphone则用原生的 input 上传
Android代码-一个类似支付宝、
微信
输入支付密码的
控件
PasscodeView An android widget to
input
passcode. Setup Maven online.devliving passcodeview 1.0.3 pom Gradle compile 'online.devliving:passcodeview:1.0.3' Usage PasscodeView is a ViewGroup subclass. So it can easily be added in any xml layout
file
. Methods requestToShowKeyboard() - Request the PasscodeView to be focused programmatically setText(CharSequence text) - Set Passcode programmatically clearText() - Clear Passcode getText() - get entered Passcode setPasscodeEntryListener
Android代码-数字输入
控件
,像支付宝、
微信
支付的密码输入面板
中文文档 NumberCodeView A number
input
view which like
input
password in alipay or wechat pay. Usage Normal Style Normal, start to an activity which include the NumberCodeView. Add to your '.xml'
file
. Use the numbercodeview:isPassword attribute. BottomSheet Style Bottom sheet style, an activity with dialog style. Popup from bottom of screen. Call Bottom sheet style NumberCodeView with a single line code. Like this: BottomSheetNumberCodeViewActivity.show(this, mIsPassword); isPassword Attribute If
关于webview适配H5
上传
照片或者视频文件的方法
一、需要
实现
的功能: 用H5
实现
的App中需要在H5获取手机中的照片或者视频文件
上传
到服务器。 二、分析
实现
方法: 由于不懂前端开发,不知道H5中有
input
file
之类的标签
控件
,可以用来选择文件,刚开始的思路还是想着native 端是否要通过提供
input
stream流
方式
,将文件内容传递给JS。后来和前端沟通之后,H5在电脑端都是用
input
设置type为
file
来
实现
文件选择功能,于是才开始搜索资料,发现时需要在webview中设置 setWebChromeClient ,其中有对
input
的响应回调: 三、具体
实现
: 前端代码 <
input
type=
file
微信
内置
的
浏览器
如何
上传
文件
作者:水歌 链接:https://www.zhihu.com/question/21452742/answer/34164634 来源:知乎 著作权归作者所有。商业转载请联系作者获得授权,非商业转载请注明出处。 以下是 网上搜索文档、团队实战经验的总结,主要基于 Android 4.0+、iOS 6.0+、
微信
5.2+ —— 过去
限制
很多的 iOS 版
微信
却没出什么大问题,反
微信
小程序基础之
input
输入框
控件
今天主要详写一下
微信
小程序中的
Input
输入框
控件
,输入框在程序中是最常见的,登录,注册,获取搜索框中的内容等等都需要,同时,还需要设置不同样式的输入框,今天的代码中都要相应的使用。首先主页面中将登录的样式进行了简单展示和使用,代码如下:name=“userName”属性,可以区别哪个输入框,并通过添加属性提交:bindsubmit="方法名" 重置:bindreset="方法名",达到清除输入框
Web 开发
81,090
社区成员
341,731
社区内容
发帖
与我相关
我的任务
Web 开发
Java Web 开发
复制链接
扫一扫
分享
社区描述
Java Web 开发
社区管理员
加入社区
获取链接或二维码
近7日
近30日
至今
加载中
查看更多榜单
社区公告
暂无公告
试试用AI创作助手写篇文章吧
+ 用AI写文章