html上传文件类型限制之accept的全部属性值

更新时间:2023-07-19 09:37:35 阅读: 评论:0

产品调整
html上传⽂件类型限制之accept的全部属性值在上传⽂件的时候,需要限制指定的⽂件类型。
[html]
1. <input type="file"accept="image/*"/>
红豆古诗王维accept表⽰可以上传⽂件类型,image表⽰图⽚,*表⽰所有⽀持的格式。
=============================================================================
accept可以指定如下信息:
⽂件类型accept属性值类型
*.3gpp audio/3gpp, video/3gpp3GPP Audio/Video
*.ac3audio/ac3AC3 Audio
*.asf allpication/vnd.ms-asf Advanced Streaming Format
*.au audio/basic AU Audio
*.css text/css Cascading Style Sheets
*.csv text/csv Comma Separated Values
*.doc application/msword MS Word Document
*.dot application/msword MS Word Template
*.dtd application/xml-dtd Document Type Definition
*.dwg image/vnd.dwg AutoCAD Drawing Databa
*.dxf image/vnd.dxf AutoCAD Drawing Interchange Format
财务局
*.gif image/gif Graphic Interchange Format
*.htm text/html HyperText Markup Language
*.html text/html HyperText Markup Language
*.jp2image/jp2JPEG-2000
*.jpe image/jpeg JPEG
*.jpeg image/jpeg JPEG
*.jpg image/jpeg JPEG
福的祝福语*.js text/javascript, application/javascript JavaScript
*.json application/json JavaScript Object Notation
*.mp2audio/mpeg, video/mpeg MPEG Audio/Video Stream, Layer II
*.mp3audio/mpeg MPEG Audio Stream, Layer III
*.mp4audio/mp4, video/mp4MPEG-4 Audio/Video
*.mpeg video/mpeg MPEG Video Stream, Layer II
日夜夜
*.mpg video/mpeg MPEG Video Stream, Layer II
*.mpp application/vnd.ms-project MS Project Project
*.ogg application/ogg, audio/ogg Ogg Vorbis
*.pdf application/pdf Portable Document Format
*.png image/png Portable Network Graphics
*.pot application/vnd.ms-powerpoint MS PowerPoint Template
*.pps application/vnd.ms-powerpoint MS PowerPoint Slideshow
*.ppt application/vnd.ms-powerpoint MS PowerPoint Prentation
*.rtf application/rtf, text/rtf Rich Text Format
*.svf image/vnd.svf Simple Vector Format
*.tif image/tiff Tagged Image Format File
关于春天的图画
*.tiff image/tiff Tagged Image Format File
*.txt text/plain Plain Text
郭金辉
*.wdb application/vnd.ms-works MS Works Databa
*.wps application/vnd.ms-works Works Text Document
*.xhtml application/xhtml+xml Extensible HyperText Markup Language
*.xlc application/vnd.ms-excel MS Excel Chart
*.xlm application/vnd.ms-excel MS Excel Macro
*.xls application/vnd.ms-excel MS Excel Spreadsheet
*.xlt application/vnd.ms-excel MS Excel Template
*.xlw application/vnd.ms-excel MS Excel Workspace
面痣女
*.xml text/xml, application/xml Extensible Markup Language
*.zip application/zip Compresd Archive

本文发布于:2023-07-19 09:37:35,感谢您对本站的认可!

本文链接:https://www.wtabcd.cn/fanwen/fan/89/1087584.html

版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。

标签:类型   限制   上传   指定   调整   红豆   产品   古诗
相关文章
留言与评论(共有 0 条评论)
   
验证码:
推荐文章
排行榜
Copyright ©2019-2022 Comsenz Inc.Powered by © 专利检索| 网站地图