html 文件上传 限制类型 的写法
2013-03-07 14:07
260 查看
<input type="file" accept="接受以下类型" />
限定多个的写法accept="application/msexcel,accept="application/msword""
1.accept="application/msexcel"
2.accept="application/msword"
3.accept="application/pdf"
4.accept="application/poscript"
5.accept="application/rtf"
6.accept="application/x-zip-compressed"
7.accept="audio/basic"
8.accept="audio/x-aiff"
9.accept="audio/x-mpeg"
10.accept="audio/x-pn/realaudio"
11.accept="audio/x-waw"
12.accept="image/gif"
13.accept="image/jpeg"
14.accept="image/tiff"
15.accept="image/x-ms-bmp"
16.accept="image/x-photo-cd"
17.accept="image/x-png"
18.accept="image/x-portablebitmap"
19.accept="image/x-portable-greymap"
20.accept="image/x-portable-pixmap"
21.accept="image/x-rgb"
22.accept="text/html"
23.accept="text/plain"
24.accept="video/quicktime"
25.accept="video/x-mpeg2"
26.accept="video/x-msvideo"
限定多个的写法accept="application/msexcel,accept="application/msword""
1.accept="application/msexcel"
2.accept="application/msword"
3.accept="application/pdf"
4.accept="application/poscript"
5.accept="application/rtf"
6.accept="application/x-zip-compressed"
7.accept="audio/basic"
8.accept="audio/x-aiff"
9.accept="audio/x-mpeg"
10.accept="audio/x-pn/realaudio"
11.accept="audio/x-waw"
12.accept="image/gif"
13.accept="image/jpeg"
14.accept="image/tiff"
15.accept="image/x-ms-bmp"
16.accept="image/x-photo-cd"
17.accept="image/x-png"
18.accept="image/x-portablebitmap"
19.accept="image/x-portable-greymap"
20.accept="image/x-portable-pixmap"
21.accept="image/x-rgb"
22.accept="text/html"
23.accept="text/plain"
24.accept="video/quicktime"
25.accept="video/x-mpeg2"
26.accept="video/x-msvideo"
相关文章推荐
- html上传文件类型限制之accept的全部属性值
- html 上传文件类型限制
- html 5 如何限制上传的文件类型 (uploadifive)
- input file控件限制上传文件类型 网页上添加一个input file HTML控件: 1 <input id="File1" type="file" /> 默认是这样的,所有文件类
- JS限制上传文件类型和大小(不是宽高)
- js限制用户上传文件类型
- file限制上传文件的类型
- IE与firefox限制文件上传类型的一点小区别及相应逻辑的小改进
- FCKeditor 上传修改,添加对文件的类型以及大小的限制(ASP.NET C#)
- Apache+PHP,swfupload做批量上传时遇到的文件类型支持问题和文件上传大小限制问题的相应解决方案
- 文件上传以及限制类型
- FCKeditor 上传修改,添加对文件的类型以及大小的限制(ASP.NET C#)
- JavaScript限制上传文件类型的代码
- [ASP.NET] 限制上传文件类型的两种方法(转)
- 网页限制上传文件的类型
- JSP使用Common FileUpload组件实现文件上传及限制上传类型实例代码
- html-文件上传设置accept类型延时问题
- Html input file控件使用accept过滤 限制的文件类型
- Uploadify 3.2上传文件,限制类型,大小,传递参数等
- php限制上传文件类型并保存上传文件的方法