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

相关推荐
前端青山4 小时前
Node.js-增强 API 安全性和性能优化
开发语言·前端·javascript·性能优化·前端框架·node.js
Qhumaing8 小时前
html第一个网页
网络·html·html5
qq_3643717212 小时前
VueRouter 导航故障问题
javascript·vue.js·前端框架·vue-router
煎饼果子呀15 小时前
css-flex布局属性
开发语言·前端·css·html5
何老生16 小时前
spring-boot(thymeleaf前端框架,简单了解)、( 跨域请求)
spring boot·前端框架
会发光的猪。18 小时前
前端vue3若依框架pnpm run dev启动报错
前端·javascript·vue.js·前端框架·bug
布兰妮甜18 小时前
HTML5:网页开发的新纪元
前端·html·html5
想要成为祖国的花朵18 小时前
Web前端_HTML5(新增type类型)
前端·html·html5
floret*18 小时前
html编写下雪爱心可改字
html5
羊小猪~~18 小时前
前端入门一之HTML知识讲解
前端·javascript·css·前端框架·html·html5