文件上传accept参数可接受的类型汇总
https://www.cnblogs.com/huihuihero/p/17012817.html
1 // 文件上传accept接受的文件类型 2 3 export const fileTypes = { 4 ".3gpp": "audio/3gpp, video/3gpp", 5 ".ac3": "audio/ac3", 6 ".asf": "allpication/vnd.ms-asf", 7 ".au": "audio/basic", 8 ".css": "text/css", 9 ".csv": "text/csv", 10 ".doc": "application/msword", 11 ".docx": "application/vnd.openxmlformats-officedocument.wordprocessingml.document", 12 ".dot": "application/msword", 13 ".dotx": "application/vnd.openxmlformats-officedocument.wordprocessingml.template", 14 ".docm": "application/vnd.ms-word.document.macroEnabled.12", 15 ".dotm": "application/vnd.ms-word.template.macroEnabled.12", 16 ".dtd": "application/xml-dtd", 17 ".dwg": "image/vnd.dwg", 18 ".dxf": "image/vnd.dxf", 19 ".gif": "image/gif", 20 ".htm": "text/html", 21 ".html": "text/html", 22 ".jp2": "image/jp2", 23 ".jpe": "image/jpeg", 24 ".jpeg": "image/jpeg", 25 ".jpg": "image/jpeg", 26 ".js": "text/javascript, application/javascript", 27 ".json": "application/json", 28 ".mp2": "audio/mpeg, video/mpeg", 29 ".mp3": "audio/mpeg", 30 ".mp4": "audio/mp4, video/mp4", 31 ".mpeg": "video/mpeg", 32 ".mpg": "video/mpeg", 33 ".mpp": "application/vnd.ms-project", 34 ".ogg": "application/ogg, audio/ogg", 35 ".pdf": "application/pdf", 36 ".png": "image/png", 37 ".pot": "application/vnd.ms-powerpoint", 38 ".potm": "application/vnd.ms-powerpoint.presentation.macroEnabled.12", 39 ".potx": "application/vnd.openxmlformats-officedocument.presentationml.template", 40 ".pps": "application/vnd.ms-powerpoint", 41 ".ppsm": "application/vnd.ms-powerpoint.slideshow.macroEnabled.12", 42 ".ppsx": "application/vnd.openxmlformats-officedocument.presentationml.slideshow", 43 ".ppt": "application/vnd.ms-powerpoint", 44 ".pptm": "application/vnd.ms-powerpoint.presentation.macroEnabled.12", 45 ".pptx": "application/vnd.openxmlformats-officedocument.presentationml.presentation", 46 ".ppa": "application/vnd.ms-powerpoint", 47 ".ppam": "application/vnd.ms-powerpoint.addin.macroEnabled.12", 48 ".rtf": "application/rtf, text/rtf", 49 ".svf": "image/vnd.svf", 50 ".tif": "image/tiff", 51 ".tiff": "image/tiff", 52 ".txt": "text/plain", 53 ".wdb": "application/vnd.ms-works", 54 ".wps": "application/vnd.ms-works", 55 ".xhtml": "application/xhtml+xml", 56 ".xlc": "application/vnd.ms-excel", 57 ".xlm": "application/vnd.ms-excel", 58 ".xla": "application/vnd.ms-excel", 59 ".xlam": "application/vnd.ms-excel.addin.macroEnabled.12", 60 ".xls": "application/vnd.ms-excel", 61 ".xlsx": "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet", 62 ".xlsm": "application/vnd.ms-excel.sheet.macroEnabled.12", 63 ".xlsb": "application/vnd.ms-excel.sheet.binary.macroEnabled.12", 64 ".xlt": "application/vnd.ms-excel", 65 ".xltx": "application/vnd.openxmlformats-officedocument.spreadsheetml.template", 66 ".xltm": "application/vnd.ms-excel.template.macroEnabled.12", 67 ".xlw": "application/vnd.ms-excel", 68 ".xml": "text/xml, application/xml", 69 ".zip": "application/zipapplication/x-zip-compressed", 70 };
【推荐】国内首个AI IDE,深度理解中文开发场景,立即下载体验Trae
【推荐】编程新体验,更懂你的AI,立即体验豆包MarsCode编程助手
【推荐】抖音旗下AI助手豆包,你的智能百科全书,全免费不限次数
【推荐】轻量又高性能的 SSH 工具 IShell:AI 加持,快人一步
· AI与.NET技术实操系列:基于图像分类模型对图像进行分类
· go语言实现终端里的倒计时
· 如何编写易于单元测试的代码
· 10年+ .NET Coder 心语,封装的思维:从隐藏、稳定开始理解其本质意义
· .NET Core 中如何实现缓存的预热?
· 25岁的心里话
· 闲置电脑爆改个人服务器(超详细) #公网映射 #Vmware虚拟网络编辑器
· 基于 Docker 搭建 FRP 内网穿透开源项目(很简单哒)
· 零经验选手,Compose 一天开发一款小游戏!
· 一起来玩mcp_server_sqlite,让AI帮你做增删改查!!