• header头参数 确定该文件类型


    'chm'=>'application/octet-stream',

    'ppt'=>'application/vnd.ms-powerpoint',

    'xls'=>'application/vnd.ms-excel',
    'doc'=>'application/msword',
    'exe'=>'application/octet-stream',
    'rar'=>'application/octet-stream',
    ".001"="application/x-001"
    ".323"="text/h323"
    ".907"="drawing/907"
    ".acp"="audio/x-mei-aac"
    ".aif"="audio/aiff"
    ".aiff"="audio/aiff"
    ".asa"="text/asa"
    ".asp"="text/asp"
    ".au"="audio/basic"
    ".awf"="application/vnd.adobe.workflow"
    ".bmp"="application/x-bmp"
    ".c4t"="application/x-c4t"
    ".cal"="application/x-cals"
    ".cdf"="application/x-netcdf"
    ".cel"="application/x-cel"
    ".cg4"="application/x-g4"
    ".cit"="application/x-cit"
    ".cml"="text/xml"
    ".cmx"="application/x-cmx"
    ".crl"="application/pkix-crl"
    ".csi"="application/x-csi"
    ".cut"="application/x-cut"
    ".dbm"="application/x-dbm"
    ".dcd"="text/xml"
    ".der"="application/x-x509-ca-cert"
    ".dib"="application/x-dib"
    ".doc"="application/msword"
    ".drw"="application/x-drw"
    ".dwf"="Model/vnd.dwf"
    ".dwg"="application/x-dwg"
    ".dxf"="application/x-dxf"
    ".emf"="application/x-emf"
    ".ent"="text/xml"
    ".eps"="application/x-ps"
    ".etd"="application/x-ebx"
    ".fax"="image/fax"
    ".fif"="application/fractals"
    ".frm"="application/x-frm"
    ".gbr"="application/x-gbr"
    ".gif"="image/gif"
    ".gp4"="application/x-gp4"
    ".hmr"="application/x-hmr"
    ".hpl"="application/x-hpl"
    ".hrf"="application/x-hrf"
    ".htc"="text/x-component"
    ".html"="text/html"
    ".htx"="text/html"
    ".ico"="image/x-icon"
    ".iff"="application/x-iff"
    ".igs"="application/x-igs"
    ".img"="application/x-img"
    ".isp"="application/x-internet-signup"
    ".java"="java/*"
    ".jpe"="image/jpeg"
    ".jpeg"="image/jpeg"
    ".jpg"="application/x-jpg"
    ".jsp"="text/html"
    ".lar"="application/x-laplayer-reg"
    ".lavs"="audio/x-liquid-secure"
    ".lmsff"="audio/x-la-lms"
    ".ltr"="application/x-ltr"
    ".m2v"="video/x-mpeg"
    ".m4e"="video/mpeg4"
    ".man"="application/x-troff-man"
    ".mdb"="application/msaccess"
    ".mfp"="application/x-shockwave-flash"
    ".mhtml"="message/rfc822"
    ".mid"="audio/mid"
    ".mil"="application/x-mil"
    ".mnd"="audio/x-musicnet-download"
    ".mocha"="application/x-javascript"
    ".mp1"="audio/mp1"
    ".mp2v"="video/mpeg"
    ".mp4"="video/mpeg4"
    ".mpd"="application/vnd.ms-project"
    ".mpeg"="video/mpg"
    ".mpga"="audio/rn-mpeg"
    ".mps"="video/x-mpeg"
    ".mpv"="video/mpg"
    ".mpw"="application/vnd.ms-project"
    ".mtx"="text/xml"
    ".net"="image/pnetvue"
    ".nws"="message/rfc822"
    ".out"="application/x-out"
    ".p12"="application/x-pkcs12"
    ".p7c"="application/pkcs7-mime"
    ".p7r"="application/x-pkcs7-certreqresp"
    ".pc5"="application/x-pc5"
    ".pcl"="application/x-pcl"
    ".pdf"="application/pdf"
    ".pdx"="application/vnd.adobe.pdx"
    ".pgl"="application/x-pgl"
    ".pko"="application/vnd.ms-pki.pko"
    ".plg"="text/html"
    ".plt"="application/x-plt"
    ".png"="application/x-png"
    ".ppa"="application/vnd.ms-powerpoint"
    ".pps"="application/vnd.ms-powerpoint"
    ".ppt"="application/x-ppt"
    ".prf"="application/pics-rules"
    ".prt"="application/x-prt"
    ".ps"="application/postscript"
    ".pwz"="application/vnd.ms-powerpoint"
    ".ra"="audio/vnd.rn-realaudio"
    ".ras"="application/x-ras"
    ".rdf"="text/xml"
    ".red"="application/x-red"
    ".rjs"="application/vnd.rn-realsystem-rjs"
    ".rlc"="application/x-rlc"
    ".rm"="application/vnd.rn-realmedia"
    ".rmi"="audio/mid"
    ".rmm"="audio/x-pn-realaudio"
    ".rms"="application/vnd.rn-realmedia-secure"
    ".rmx"="application/vnd.rn-realsystem-rmx"
    ".rp"="image/vnd.rn-realpix"
    ".rsml"="application/vnd.rn-rsml"
    ".rtf"="application/msword"
    ".rv"="video/vnd.rn-realvideo"
    ".sat"="application/x-sat"
    ".sdw"="application/x-sdw"
    ".slb"="application/x-slb"
    ".slk"="drawing/x-slk"
    ".smil"="application/smil"
    ".snd"="audio/basic"
    ".sor"="text/plain"
    ".spl"="application/futuresplash"
    ".ssm"="application/streamingmedia"
    ".stl"="application/vnd.ms-pki.stl"
    ".sty"="application/x-sty"
    ".swf"="application/x-shockwave-flash"
    ".tg4"="application/x-tg4"
    ".tif"="image/tiff"
    ".tiff"="image/tiff"
    ".top"="drawing/x-top"
    ".tsd"="text/xml"
    ".uin"="application/x-icq"
    ".vcf"="text/x-vcard"
    ".vdx"="application/vnd.visio"
    ".vpg"="application/x-vpeg005"
    ".vsd"="application/x-vsd"
    ".vst"="application/vnd.visio"
    ".vsw"="application/vnd.visio"
    ".vtx"="application/vnd.visio"
    ".wav"="audio/wav"
    ".wb1"="application/x-wb1"
    ".wb3"="application/x-wb3"
    ".wiz"="application/msword"
    ".wk4"="application/x-wk4"
    ".wks"="application/x-wks"
    ".wma"="audio/x-ms-wma"
    ".wmf"="application/x-wmf"
    ".wmv"="video/x-ms-wmv"
    ".wmz"="application/x-ms-wmz"
    ".wpd"="application/x-wpd"
    ".wpl"="application/vnd.ms-wpl"
    ".wr1"="application/x-wr1"
    ".wrk"="application/x-wrk"
    ".ws2"="application/x-ws"
    ".wsdl"="text/xml"
    ".xdp"="application/vnd.adobe.xdp"
    ".xfd"="application/vnd.adobe.xfd"
    ".xhtml"="text/html"
    ".xls"="application/x-xls"
    ".xml"="text/xml"
    ".xq"="text/xml"
    ".xquery"="text/xml"
    ".xsl"="text/xml"
    ".xwd"="application/x-xwd"
    ".x_t"="application/x-x_t"
    ".myz"="application/myz"
  • 相关阅读:
    Xcode6模拟器下键盘出不来的原因
    iOS7View被导航栏遮挡问题的解决
    iOS中设置导航栏标题的字体颜色和大小
    iphone ios 屏幕,导航条,状态栏的高度
    iOS: TableView如何刷新指定的cell 或section
    rest api load test
    异步图片处理服务器
    bitbucket SSH 生成
    基于Token的授权(with srping mvc)
    Netty性能调优
  • 原文地址:https://www.cnblogs.com/benpaodelulu/p/7289860.html
Copyright © 2020-2023  润新知