上传文件,文件类型限制语法,各种媒体视频文件的Content-Type

各种媒体视频文件的Content-Type

"application/x-apple-diskimage": "DMG",

"application/epub+zip": "EPUB",

"application/java-archive": "JAR",

"video/x-matroska": "MKV",

"text/html": "HTML|HTM",

"text/css": "CSS",

"text/javascript": "JS|JSON",

"text/mspg-legacyinfo": "MSI|MSP",

"text/plain": "TXT|SRT",

"text/srt": "SRT",

"text/vtt": "VTT|SRT",

"text/xml": "XML|F4M|TTML",

"text/x-javascript": "JS|JSON",

"text/x-json": "JSON",

"application/f4m+xml": "F4M",

"application/gzip": "GZ",

"application/javascript": "JS",

"application/json": "JSON",

"application/msword": "DOC|DOCX|DOT|DOTX",

"application/pdf": "PDF",

"application/ttaf+xml": "DFXP",

"application/vnd.apple.mpegurl": "M3U8",

"application/zip": "ZIP",

"application/x-7z-compressed": "7Z",

"application/x-aim": "PLJ",

"application/x-compress": "Z",

"application/x-compress-7z": "7Z",

"application/x-compressed": "ARJ",

"application/x-gtar": "TAR",

"application/x-msi": "MSI",

"application/x-msp": "MSP",

"application/x-gzip": "GZ",

"application/x-gzip-compressed": "GZ",

"application/x-javascript": "JS",

"application/x-mpegurl": "M3U8",

"application/x-msdos-program": "EXE|DLL",

"application/vnd.apple.installer+xml": "MPKG",

"application/x-ole-storage": "MSI|MSP",

"application/x-rar": "RAR",

"application/x-rar-compressed": "RAR",

"application/x-sdlc": "EXE|SDLC",

"application/x-shockwave-flash": "SWF",

"application/x-silverlight-app": "XAP",

"application/x-subrip": "SRT",

"application/x-tar": "TAR",

"application/x-zip": "ZIP",

"application/x-zip-compressed": "ZIP",

"video/3gpp": "3GP|3GPP",

"video/3gpp2": "3GP|3GPP",

"video/avi": "AVI",

"video/f4f": "F4F",

"video/f4m": "F4M",

"video/flv": "FLV",

"video/mp2t": "TS|M3U8",

"video/mp4": "MP4|M4V",

"video/mpeg": "MPG|MPEG|MPE",

"video/mpegurl": "M3U8|M3U",

"video/mpg4": "MP4|M4V",

"video/msvideo": "AVI",

"video/quicktime": "MOV|QT",

"video/webm": "WEBM",

"video/x-flash-video": "FLV",

"video/x-flv": "FLV",

"video/x-mp4": "MP4|M4V",

"video/x-mpegurl": "M3U8|M3U",

"video/x-mpg4": "MP4|M4V",

"video/x-ms-asf": "ASF",

"video/x-ms-wmv": "WMV",

"video/x-msvideo": "AVI",

"audio/3gpp": "3GP|3GPP",

"audio/3gpp2": "3GP|3GPP",

"audio/mp3": "MP3",

"audio/mp4": "M4A|MP4",

"audio/mp4a-latm": "M4A|MP4",

"audio/mpeg": "MP3",

"audio/mpeg4-generic": "M4A|MP4",

"audio/mpegurl": "M3U8|M3U",

"image/svg+xml": "SVG|SVGZ",

"audio/webm": "WEBM",

"audio/wav": "WAV",

"audio/x-mpeg": "MP3",

"audio/x-mpegurl": "M3U8|M3U",

"audio/x-ms-wma": "WMA",

"audio/x-wav": "WAV",

"ilm/tm": "MP3",

"image/gif": "GIF|GFA",

"image/icon": "ICO|CUR",

"image/jpg": "JPG|JPEG",

"image/jpeg": "JPG|JPEG",

"image/png": "PNG|APNG",

"image/tiff": "TIF|TIFF",

"image/vnd.microsoft.icon": "ICO|CUR",

"image/webp": "WEBP",

"image/x-icon": "ICO|CUR",

"flv-application/octet-stream": "FLV",

"image/x-xbitmap": "XBM",

"audio/x-mp3": "MP3",

"audio/x-hx-aac-adts": "AAC",

"audio/aac": "AAC",

"audio/x-aac": "AAC",

"application/vnd.rn-realmedia-vbr": "RMVB"

相关推荐
木木黄木木2 小时前
html5炫酷图片悬停效果实现详解
前端·html·html5
自动花钱机3 小时前
WebUI问题总结
前端·javascript·bootstrap·css3·html5
编程社区管理员8 小时前
「2025最新版React+Ant Design+Router+TailwindCss全栈攻略:从零到实战,打造高颜值企业级应用
前端·react.js·前端框架
小旋风012348 小时前
封装可拖动弹窗(vue jquery引入到html的版本)
vue.js·html·jquery
木木黄木木14 小时前
HTML5手写签名板项目实战教程
前端·html·html5
前端三叶草16 小时前
静态分析:现代前端脚手架路由梳理
前端·前端框架
自动花钱机17 小时前
ESLint语法报错
前端·javascript·vue.js·css3·html5
GISer_Jing1 天前
React-Markdown详解
前端·react.js·前端框架
DarkBule_1 天前
零基础驯服GitHub Pages
css·学习·html·github·html5·web
Li_na_na011 天前
解决安卓手机WebView无法直接预览PDF的问题(使用PDF.js方案)
android·pdf·uni-app·html5