上传文件,文件类型限制语法,各种媒体视频文件的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"

相关推荐
羊小猪~~6 分钟前
前端入门之VUE--ajax、vuex、router,最后的前端总结
前端·javascript·css·vue.js·vscode·ajax·html5
撸码到无法自拔2 小时前
React:组件、状态与事件处理的完整指南
前端·javascript·react.js·前端框架·ecmascript
桃园码工3 小时前
13_HTML5 Audio(音频) --[HTML5 API 学习之旅]
音视频·html5·audio
Domain-zhuo3 小时前
如何利用webpack来优化前端性能?
前端·webpack·前端框架·node.js·ecmascript
Web打印5 小时前
web打印插件 HttpPrinter 使用半年评测
javascript·json·firefox·jquery·html5
安冬的码畜日常7 小时前
【CSS in Depth 2 精译_088】第五部分:添加动效概述 + 第 15 章:CSS 过渡特效概述 + 15.1:状态间的由此及彼
前端·css·css3·html5·css过渡
web1508509664113 小时前
【React&前端】大屏适配解决方案&从框架结构到实现(超详细)(附代码)
前端·react.js·前端框架
Cachel wood14 小时前
Vue.js前端框架教程8:Vue消息提示ElMessage和ElMessageBox
linux·前端·javascript·vue.js·前端框架·ecmascript
桃园码工16 小时前
4_使用 HTML5 Canvas API (3) --[HTML5 API 学习之旅]
前端·html5·canvas
桃园码工16 小时前
9_HTML5 SVG (5) --[HTML5 API 学习之旅]
前端·html5·svg