zoukankan      html  css  js  c++  java
  • Struts2 文件上传文件类型allowedTypes汇总

     

    Struts2 文件上传文件类型allowedTypes汇总

    1. '.a'      : 'application/octet-stream',      
    2. '.ai'     : 'application/postscript',      
    3. '.aif'    : 'audio/x-aiff',      
    4. '.aifc'   : 'audio/x-aiff',      
    5. '.aiff'   : 'audio/x-aiff',      
    6. '.au'     : 'audio/basic',      
    7. '.avi'    : 'video/x-msvideo',      
    8. '.bat'    : 'text/plain',      
    9. '.bcpio' : 'application/x-bcpio',      
    10. '.bin'    : 'application/octet-stream',      
    11. '.bmp'    : 'image/x-ms-bmp',      
    12. '.c'      : 'text/plain',      
    13. # Duplicates :(      
    14. '.cdf'    : 'application/x-cdf',      
    15. '.cdf'    : 'application/x-netcdf',      
    16. '.cpio'   : 'application/x-cpio',      
    17. '.csh'    : 'application/x-csh',      
    18. '.css'    : 'text/css',      
    19. '.dll'    : 'application/octet-stream',      
    20. '.doc'    : 'application/msword',      
    21. '.dot'    : 'application/msword',      
    22. '.dvi'    : 'application/x-dvi',      
    23. '.eml'    : 'message/rfc822',      
    24. '.eps'    : 'application/postscript',      
    25. '.etx'    : 'text/x-setext',      
    26. '.exe'    : 'application/octet-stream',      
    27. '.gif'    : 'image/gif',      
    28. '.gtar'   : 'application/x-gtar',      
    29. '.h'      : 'text/plain',      
    30. '.hdf'    : 'application/x-hdf',      
    31. '.htm'    : 'text/html',      
    32. '.html'   : 'text/html',      
    33. '.ief'    : 'image/ief',      
    34. '.jpe'    : 'image/jpeg',      
    35. '.jpeg'   : 'image/jpeg',      
    36. '.jpg'    : 'image/jpeg',      
    37. '.js'     : 'application/x-javascript',      
    38. '.ksh'    : 'text/plain',      
    39. '.latex' : 'application/x-latex',      
    40. '.m1v'    : 'video/mpeg',      
    41. '.man'    : 'application/x-troff-man',      
    42. '.me'     : 'application/x-troff-me',      
    43. '.mht'    : 'message/rfc822',      
    44. '.mhtml' : 'message/rfc822',      
    45. '.mif'    : 'application/x-mif',      
    46. '.mov'    : 'video/quicktime',      
    47. '.movie' : 'video/x-sgi-movie',      
    48. '.mp2'    : 'audio/mpeg',      
    49. '.mp3'    : 'audio/mpeg',      
    50. '.mpa'    : 'video/mpeg',      
    51. '.mpe'    : 'video/mpeg',      
    52. '.mpeg'   : 'video/mpeg',      
    53. '.mpg'    : 'video/mpeg',      
    54. '.ms'     : 'application/x-troff-ms',      
    55. '.nc'     : 'application/x-netcdf',      
    56. '.nws'    : 'message/rfc822',      
    57. '.o'      : 'application/octet-stream',      
    58. '.obj'    : 'application/octet-stream',      
    59. '.oda'    : 'application/oda',      
    60. '.p12'    : 'application/x-pkcs12',      
    61. '.p7c'    : 'application/pkcs7-mime',      
    62. '.pbm'    : 'image/x-portable-bitmap',      
    63. '.pdf'    : 'application/pdf',      
    64. '.pfx'    : 'application/x-pkcs12',      
    65. '.pgm'    : 'image/x-portable-graymap',      
    66. '.pl'     : 'text/plain',      
    67. '.png'    : 'image/png',      
    68. '.pnm'    : 'image/x-portable-anymap',      
    69. '.pot'    : 'application/vnd.ms-powerpoint',      
    70. '.ppa'    : 'application/vnd.ms-powerpoint',      
    71. '.ppm'    : 'image/x-portable-pixmap',      
    72. '.pps'    : 'application/vnd.ms-powerpoint',      
    73. '.ppt'    : 'application/vnd.ms-powerpoint',      
    74. '.ps'     : 'application/postscript',      
    75. '.pwz'    : 'application/vnd.ms-powerpoint',      
    76. '.py'     : 'text/x-python',      
    77. '.pyc'    : 'application/x-python-code',      
    78. '.pyo'    : 'application/x-python-code',      
    79. '.qt'     : 'video/quicktime',      
    80. '.ra'     : 'audio/x-pn-realaudio',      
    81. '.ram'    : 'application/x-pn-realaudio',      
    82. '.ras'    : 'image/x-cmu-raster',      
    83. '.rdf'    : 'application/xml',      
    84. '.rgb'    : 'image/x-rgb',      
    85. '.roff'   : 'application/x-troff',      
    86. '.rtx'    : 'text/richtext',      
    87. '.sgm'    : 'text/x-sgml',      
    88. '.sgml'   : 'text/x-sgml',      
    89. '.sh'     : 'application/x-sh',      
    90. '.shar'   : 'application/x-shar',      
    91. '.snd'    : 'audio/basic',      
    92. '.so'     : 'application/octet-stream',      
    93. '.src'    : 'application/x-wais-source',      
    94. '.sv4cpio''application/x-sv4cpio',      
    95. '.sv4crc' : 'application/x-sv4crc',      
    96. '.swf'    : 'application/x-shockwave-flash',      
    97. '.t'      : 'application/x-troff',      
    98. '.tar'    : 'application/x-tar',      
    99. '.tcl'    : 'application/x-tcl',      
    100.      
    101. '.tex'    : 'application/x-tex',      
    102. '.texi'   : 'application/x-texinfo',      
    103. '.texinfo''application/x-texinfo',      
    104. '.tif'    : 'image/tiff',      
    105. '.tiff'   : 'image/tiff',      
    106. '.tr'     : 'application/x-troff',      
    107. '.tsv'    : 'text/tab-separated-values',      
    108. '.txt'    : 'text/plain',      
    109. '.ustar' : 'application/x-ustar',      
    110. '.vcf'    : 'text/x-vcard',      
    111. '.wav'    : 'audio/x-wav',      
    112. '.wiz'    : 'application/msword',      
    113. '.wsdl'   : 'application/xml',      
    114. '.xbm'    : 'image/x-xbitmap',      
    115. '.xlb'    : 'application/vnd.ms-excel',      
    116. # Duplicates :(      
    117. '.xls'    : 'application/excel',      
    118. '.xls'    : 'application/vnd.ms-excel',      
    119. '.xml'    : 'text/xml',      
    120. '.xpdl'   : 'application/xml',      
    121. '.xpm'    : 'image/x-xpixmap',      
    122. '.xsl'    : 'application/xml',      
    123. '.xwd'    : 'image/x-xwindowdump',      
    124. '.zip'    : 'application/zip'
    现在docx文档类型:application/vnd.openxmlformats-officedocument.wordprocessingml.document
  • 相关阅读:
    【POJ】3243 Clever Y
    【BZOJ】3916: [Baltic2014]friends
    【URAL】1960. Palindromes and Super Abilities
    【BZOJ】3621: 我想那还真是令人高兴啊
    【BZOJ】2286: [Sdoi2011消耗战
    【POJ】2891 Strange Way to Express Integers
    鬼畜的多项式
    【CF】438E. The Child and Binary Tree
    【BZOJ】3456: 城市规划
    【POJ】1811 Prime Test
  • 原文地址:https://www.cnblogs.com/liaomin416100569/p/9331481.html
Copyright © 2011-2022 走看看