Time of Update: 2016-07-13
attached server response HTTP ContentType Daquan:". *" = "Application/octet-stream"". 001" = "application/x-001"". 301" = "application/x-301"". 323" = "text/h323"". 906" = "application/x-906"". 907" = "drawing/907"". A11" = "Application/x-a11"". ACP" = "AUDIO/X-MEI-AAC"". Ai" = "Application/postscript"". AIF" = "Audio/aiff"". aifc" = "Audio/aiff"". Aiff" = "Audio/aiff"". Anv" = "Application/x-anv"". Asa" = "Text/asa"". asf" = "video/x-ms-asf"". asp" = "text/asp"". asx" = "video/x-ms-asf"". Au"
Time of Update: 2017-05-14
/x-g4 ″". Cgm" = "application/x-cgm"". Cit" = "application/x-cit"". Class" = "java /*"". CRF" = "text/xml"". Cmp" = "application/x-cmp"". Cmx " = "application/x-cmx "". Cot" = "application/x-cot"". Crl" = "application/pkix-crl"". Crt" = "application/x-x509-ca-cert"". Csi" = "application/x-csi"".Css "=" text/css"". Cut" = "application/x-cut"". Dbf" = "application/x-dbf"". Dbm" = "application/x-dbm"". Dbx" = "a
Time of Update: 2018-12-05
-cert"". Cg4" = "application/x-g4"". Cgm" = "application/x-cgm"". Cit" = "application/x-cit"". Class" = "java /*"". CRF" = "text/xml"". Cmp" = "application/x-cmp"". Cmx " = "application/x-cmx "". Cot" = "application/x-cot"". Crl" = "application/pkix-crl"". Crt" = "application/x-x509-ca-cert"". Csi" = "application/x-csi"". Css" = "text/css"". Cut" = "application/x-cut"". Dbf" = "application/x-dbf"". Dbm" = "ap
Time of Update: 2018-12-05
". *" = "Application/octet-stream"". 001" = "application/x-001"". 301" = "application/x-301"". 323" = "text/h323"". 906" = "application/x-906"". 907" = "Fig/907"". A11" = "application/x-a11"". Acp" = "audio/x-mei-aac"". Ai" = "application/postscript"". Aif" = "audio/aiff"". Aifc" = "audio/aiff"". Aiff" = "audio/aiff"". Anv" = "application/x-anv"". Asa" = "text/asa"". Asf" = "video/x-ms-asf"". Asp" = "text/asp"". Asx" = "video/x-ms-asf"". Au" = "audio/basic"". Avi" = "video/avi"". Awf" = "applica
Time of Update: 2018-12-05
"". Cdr" = "application/x-cdr"". Cel" = "application/x-cel"". Cer" = "application/x-x509-ca-cert"". Cg4" = "application/x-g4"". Cgm" = "application/x-cgm"". Cit" = "application/x-cit"". Class" = "java /*"". CRF" = "text/xml"". Cmp" = "application/x-cmp"". Cmx " = "application/x-cmx "". Cot" = "application/x-cot"". Crl" = "application/pkix-crl"". Crt" = "application/x-x509-ca-cert"". Csi" = "application/x-csi"
Time of Update: 2017-05-11
Here we will sort out the js methods used in my previous project. They are all very common javascript methods. I believe our friends can also use them frequently. Here we will sort them out and share them with you.
Verify whether the image format is used
The Code is as follows:
Function IsImgType (src ){Var rFilter =/^ (? : Image \/bmp | image \/cis \-cod | image \/gif | image \/ief | image \/jpeg | image \ /pipeg | image \/png | image \/svg \ + xml | image \/tiff | image \/x \-cmu \-raster |
Time of Update: 2017-05-14
" = "application/x-x509-ca-cert"". Cg4" = "application/x-g4"". Cgm" = "application/x-cgm"". Cit" = "application/x-cit"". Class" = "java /*"". CRF" = "text/xml"". Cmp" = "application/x-cmp"". Cmx " = "application/x-cmx "". Cot" = "application/x-cot"". Crl" = "application/pkix-crl"". Crt" = "application/x-x509-ca-cert"". Csi" = "application/x-csi"". Css? 1.1.9 "=" text/css"". Cut" = "application/x-cut"". Dbf" =
Time of Update: 2017-05-14
" = "application/x-a11"
". Acp" = "audio/x-mei-aac"
". Ai" = "application/postscript"
". Aif" = "audio/aiff"
". Aifc" = "audio/aiff"
". Aiff" = "audio/aiff"
". Anv" = "application/x-anv"
". Asa" = "text/asa"
". Asf" = "video/x-ms-asf"
". Asp" = "text/asp"
". Asx" = "video/x-ms-asf"
". Au" = "audio/basic"
". Avi" = "video/avi"
". Awf" = "application/vnd. adobe. workflow"
". Biz" = "text/xml"
". Bmp" = "application/x-bmp"
". Bot" = "application/x-bot"
". C4t" = "application/x-c4t"
". C90" = "appli
Time of Update: 2015-04-24
"=" Application/x-cel "". cer "=" Application/x-x509-ca-cert "". Cg4 "=" application/ X-g4 "". CGM "=" APPLICATION/X-CGM "". cit "=" application/x-cit "". Class "=" java/* "". CML "=" text /xml "". cmp "=" application/x-cmp "". CMX "=" application/x-cmx "". Cot "=" Application/x-cot "". CRL "=" application/pkix-crl "". Crt "=" Application/x-x509-ca-cert "". CSI "=" APPLICATION/X-CSI "". CSS "=" text/css ""
Time of Update: 2016-07-29
. Cel
Application/x-cel
. cer
Application/x-x509-ca-cert
. cg4
Application/x-g4
. CGM
Application/x-cgm
. cit
Application/x-cit
. class
java/*
. CML
Text/xml
. cmp
application/x-cmp
. CMX
Application/x-cmx
. Cot
Application/x-cot
. CRL
Application/pkix-crl
. crt
Applicat
Time of Update: 2017-05-13
application/octet-stream
Bmp image/bmp
C text/plain
Cat application/vnd. ms-pkiseccat
Cdf application/x-cdf
Cer application/x-x509-ca-cert
Class application/octet-stream
Clp application/x-msclip
Cmx image/x-cmx
Cod image/cis-cod
Cpio application/x-cpio
Crd application/x-mscardfile
Crl application/pkix-crl
Crt application/x-x509-ca-cert
Csh application/x-csh
Css text/css
Dcr application/x-director
Der appli
Time of Update: 2017-05-13
Aifc audio/x-aiff
Aiff audio/x-aiff
Asf video/x-ms-asf
Asr video/x-ms-asf
Asx video/x-ms-asf
Au audio/basic
Avi video/x-msvideo
Axs application/olescript
Bas text/plain
Bcpio application/x-bcpio
Bin application/octet-stream
Bmp image/bmp
C text/plain
Cat application/vnd. ms-pkiseccat
Cdf application/x-cdf
Cer application/x-x509-ca-cert
Class application/octet-stream
Clp application/x-msclip
Cmx image/x-cmx
Time of Update: 2017-01-13
" = "APPLICATION/X-CGM"". cit" = "application/x-cit"". Class" = "java/*"". CML" = "Text/xml"". cmp" = "application/x-cmp"". CMX " = "APPLICATION/X-CMX "". Cot" = "Application/x-cot"". CRL" = "APPLICATION/PKIX-CRL"". Crt" = "Application/x-x509-ca-cert"". CSI" = "APPLICATION/X-CSI"". css" = "text/css"". Cut" = "application/x-cut"". dbf" = "application/x-dbf"". dbm" = "application/x-dbm"". dbx" = "application/x-
Time of Update: 2017-05-14
" = "application/x-netcdf"". Cdr" = "application/x-cdr"". Cel" = "application/x-cel"". Cer" = "application/x-x509-ca-cert"". Cg4" = "application/x-g4"". Cgm" = "application/x-cgm"". Cit" = "application/x-cit"". Class" = "java /*"". CRF" = "text/xml"". Cmp" = "application/x-cmp"". Cmx " = "application/x-cmx "". Cot" = "application/x-cot"". Crl" = "application/pkix-crl"". Crt" = "application/x-x509-ca-cert"". C
Time of Update: 2016-07-25
This array contains common MIME types, and if you need to do a file download, you can view the file extension from this array to determine if you can download
$mime _types = Array ("323" = "text/h323",
"Acx" = "Application/internet-property-stream",
"AI" = "Application/postscript",
"AIF" = "Audio/x-aiff",
"AIFC" = "Audio/x-aiff",
"AIFF" = "Audio/x-aiff",
"ASF" = "video/x-ms-asf",
"ASR" = "video/x-ms-asf",
"ASX" = "video/x-ms-asf",
"Au" = "a
Time of Update: 2014-03-27
" = "application/x-cel"". Cer" = "application/x-x509-ca-cert"". Cg4" = "application/x-g4"". Cgm" = "application/x-cgm"". Cit" = "application/x-cit"". Class" = "java /*"". CRF" = "text/xml"". Cmp" = "application/x-cmp"". Cmx " = "application/x-cmx "". Cot" = "application/x-cot"". Crl" = "application/pkix-crl"". Crt" = "application/x-x509-ca-cert"". Csi" = "application/x-csi"". Css" = "text/css"". Cut" = "appli
Time of Update: 2015-05-05
/x-ms-asf "". Au "=" audio/basic "". avi "=" Video/avi "". AWF " = "Application/vnd.adobe.workflow" ". Biz" = "Text/xml" ". bmp" = "application/x-bmp" ". Bot" = "Application/x-bot" ". c4t" = " APPLICATION/X-C4T "". C90 "=" Application/x-c90 "". Cal "=" Application/x-cals "". Cat "=" Application/vnd.ms-pki.seccat "" . cdf "=" APPLICATION/X-NETCDF "". Cdr "=" Application/x-cdr "". Cel "=" Application/x-cel "". cer "=" application/ X-x509-ca-cert "". Cg4 "=" Application/x-g4 "". CGM "=" APPLICATION
Time of Update: 2016-06-13
" = "Application/x-cals"
". Cat" = "Application/vnd.ms-pki.seccat"
". CDF" = "APPLICATION/X-NETCDF"
". Cdr" = "APPLICATION/X-CDR"
". Cel" = "Application/x-cel"
". cer" = "Application/x-x509-ca-cert"
". cg4″=" Application/x-g4″
". CGM" = "APPLICATION/X-CGM"
". cit" = "application/x-cit"
". Class" = "java/*"
". CML" = "Text/xml"
". cmp" = "application/x-cmp"
". CMX " = "APPLICATION/X-CMX "
". Cot" = "Applicatio
Time of Update: 2016-06-13
/x-cmp"". CMX " = "APPLICATION/X-CMX "". Cot" = "Application/x-cot"". CRL" = "APPLICATION/PKIX-CRL"". Crt" = "Application/x-x509-ca-cert"". CSI" = "APPLICATION/X-CSI"". css" = "text/css"". Cut" = "application/x-cut"". dbf" = "application/x-dbf"". dbm" = "application/x-dbm"". dbx" = "application/x-dbx"". DCD" = "Text/xml"". Dcx" = "APPLICATION/X-DCX"". Der" = "Application/x-x509-ca-cert"". DGN" = "APPLICATION/
Time of Update: 2018-12-08
" = "application/x-x509-ca-cert"". Cg4" = "application/x-g4"". Cgm" = "application/x-cgm"". Cit" = "application/x-cit"". Class" = "java /*"". CRF" = "text/xml"". Cmp" = "application/x-cmp"". Cmx " = "application/x-cmx "". Cot" = "application/x-cot"". Crl" = "application/pkix-crl"". Crt" = "application/x-x509-ca-cert"". Csi" = "application/x-csi"". Css" = "text/css"". Cut" = "application/x-cut"". Dbf" = "appli