Programowanie w systemie UNIX/pliki: Różnice pomiędzy wersjami

Usunięta treść Dodana treść
m →‎MIME: /etc/mime.types
m →‎MIME: plik
Linia 6:
 
==MIME==
Media type, zwany także typem MIME (od ang. Multipurpose Internet Mail Extensions) oraz czasem Content-Type (po nazwie nagłówka kilku protokołów, którego wartość jest tego typu) – dwuczęściowy identyfikator formatu plików i formatu treści przesyłanych w Internecie<ref>[[:w:Typ_MIME|Typ_MIME w wikipedii]]</ref>
 
===Ustawienia===
Plik z ustawieniami: /etc/mime.types
<syntaxhighlight lang= txt>
###############################################################################
#
# Media (MIME) types and the extensions that represent them.
#
# The format of this file is a media type on the left and zero or more
# filename extensions on the right. Programs using this file will map
# files ending with those extensions to the associated type.
#
# This file is part of the "media-types" package. Please report a bug using
# the "reportbug" command of the "reportbug" package if you would like new
# types or extensions to be added.
#
# The reason that all types are managed by the media-types package instead
# allowing individual packages to install types in much the same way as they
# add entries in to the mailcap file is so these types can be referenced by
# other programs (such as a web server) even if the specific support package
# for that type is not installed.
#
# Users can add their own types if they wish by creating a ".mime.types"
# file in their home directory. Definitions included there will take
# precedence over those listed here.
#
###############################################################################
 
 
text/1d-interleaved-parityfec
text/cache-manifest appcache manifest
text/calendar ics ifb
text/cql CQL
text/cql-extension
text/cql-identifier
text/css css
text/csv csv
text/csv-schema csvs
text/dns soa zone
text/encaprtp
text/enriched
text/example
text/fhirpath
text/flexfec
text/fwdred
text/gff3 gff3
text/grammar-ref-list
text/html html htm shtml
text/javascript es js mjs
text/jcr-cnd cnd
text/markdown md markdown
text/mizar miz
text/n3 n3
text/parameters
text/parityfec
text/plain txt text pot brf srt
text/provenance-notation provn
text/prs.fallenstein.rst rst
text/prs.lines.tag tag dsc
text/prs.prop.logic
text/raptorfec
text/RED
text/rfc822-headers
text/rtf
text/rtp-enc-aescm128
text/rtploopback
text/rtx
text/SGML sgml sgm
text/shaclc shaclc shc
text/shex shex
text/spdx spdx
text/strings
text/t140
text/tab-separated-values tsv
text/texmacs tm
text/troff t tr roff
text/turtle ttl
text/ulpfec
text/uri-list uris uri
text/vcard vcf vcard
text/vnd.a a
text/vnd.abc abc
text/vnd.ascii-art ascii
text/vnd.curl curl
text/vnd.debian.copyright copyright
text/vnd.DMClientScript dms
text/vnd.dvb.subtitle
text/vnd.esmertec.theme-descriptor jtd
text/vnd.familysearch.gedcom ged
text/vnd.ficlab.flt flt
text/vnd.fly fly
text/vnd.fmi.flexstor flx
text/vnd.gml
text/vnd.graphviz gv dot
text/vnd.hans hans
text/vnd.hgl hgl
text/vnd.in3d.3dml 3dml 3dm
text/vnd.in3d.spot spot spo
text/vnd.IPTC.NewsML
text/vnd.IPTC.NITF
text/vnd.latex-z
text/vnd.motorola.reflex
text/vnd.ms-mediapackage mpf
text/vnd.net2phone.commcenter.command ccc
text/vnd.radisys.msml-basic-layout
text/vnd.senx.warpscript mc2
text/vnd.sosi sos
text/vnd.sun.j2me.app-descriptor jad
text/vnd.trolltech.linguist ts
text/vnd.wap.si si
text/vnd.wap.sl sl
text/vnd.wap.wml wml
text/vnd.wap.wmlscript wmls
text/vtt vtt
text/x-bibtex bib
text/x-boo boo
text/x-c++hdr h++ hpp hxx hh
text/x-c++src c++ cpp cxx cc
text/x-chdr h
text/x-component htc
text/x-csh csh
text/x-csrc c
text/x-diff diff patch
text/x-dsrc d
text/x-haskell hs
text/x-java java
text/x-lilypond ly
text/x-literate-haskell lhs
text/x-moc moc
text/x-pascal p pas
text/x-pcs-gcd gcd
text/x-perl pl pm
text/x-python py
text/x-scala scala
text/x-setext etx
text/x-sfv sfv
text/x-sh sh
text/x-tcl tcl tk
text/x-tex tex ltx sty cls
text/x-vcalendar vcs
text/xml
text/xml-dtd
text/xml-external-parsed-entity
</syntaxhighlight>
 
=Suma kontrolna=