常见文件对应的MIMEType类型
序号 | 文件格式 | 对应MIMEType类型 |
---|---|---|
1 | .png | image/png |
2 | .jpeg | image/jpeg |
3 | .jpg | image/jpeg |
4 | .gif | image/gif |
5 | .webp | image/webp |
6 | .xls | application/vnd.ms-excel |
7 | .xlsx | application/vnd.openxmlformats-officedocument.spreadsheetml.sheet |
8 | .doc | application/msword |
9 | .docx | application/vnd.openxmlformats-officedocument.wordprocessingml.document |
10 | .ppt | application/vnd.ms-powerpoint |
11 | .pptx | application/vnd.openxmlformats-officedocument.presentationml.presentation |
12 | .wps | application/vnd.ms-works |
13 | .pdf | application/pdf |
14 | .txt | text/plain |
15 | .htm | text/html |
16 | .html | text/html |
17 | .ico | image/x-icon |
18 | .chm | application/vnd.ms-htmlhelp 或 application/octet-stream |
参考文献:
[1] 各种文件对应的MIMEType
[2] 各种文件类型对应的MIME类型
[3] 常用文件的mime和mimetype的对应关系