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

相关推荐
沉默璇年1 小时前
react中useMemo的使用场景
前端·react.js·前端框架
2401_882727572 小时前
BY组态-低代码web可视化组件
前端·后端·物联网·低代码·数学建模·前端框架
红绿鲤鱼3 小时前
React-自定义Hook与逻辑共享
前端·react.js·前端框架
xcLeigh6 小时前
HTML5超酷响应式视频背景动画特效(六种风格,附源码)
前端·音视频·html5
zhenryx6 小时前
前端-react(class组件和Hooks)
前端·react.js·前端框架
Thomas游戏开发7 小时前
Unity3D 逻辑服的Entity, ComponentData与System划分详解
前端框架·unity3d·游戏开发
小王码农记10 小时前
vue中路由缓存
前端·vue.js·缓存·typescript·anti-design-vue
前端青山13 小时前
webpack进阶(一)
前端·javascript·webpack·前端框架·node.js
沉默璇年14 小时前
react中Fragment的使用场景
前端·react.js·前端框架
ZhaiMou1 天前
HTML5拖拽API学习 托拽排序和可托拽课程表
前端·javascript·学习·html5