我想使用HTML5"accept"属性和ExtJs"inputAttrTpl"配置为文件上传添加客户端验证.我的ExtJs代码如下(ExtJs 4.1):
{
xtype : 'filefield',
action : 'upload',
name : 'file',
inputAttrTpl: 'accept="image/*"',
hideLabel : true,
buttonOnly : true,
anchor : '100%',
buttonText : 'Upload img...',
margin: 5
}
Run Code Online (Sandbox Code Playgroud)
但是当我在firebug中检查文件字段时,它不包含"accept"属性.你能为这个问题提出一些解决方案吗?谢谢你的回复.
我在ColdFusion中有源代码的网站.如何找出使用的数据库以及数据库文件的位置?谢谢!
此外,我无法访问CF管理员.