<!--
 -  
 -  This file is part of the OpenLink Software Virtuoso Open-Source (VOS)
 -  project.
 -  
 -  Copyright (C) 1998-2018 OpenLink Software
 -  
 -  This project is free software; you can redistribute it and/or modify it
 -  under the terms of the GNU General Public License as published by the
 -  Free Software Foundation; only version 2 of the License, dated June 1991.
 -  
 -  This program is distributed in the hope that it will be useful, but
 -  WITHOUT ANY WARRANTY; without even the implied warranty of
 -  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
 -  General Public License for more details.
 -  
 -  You should have received a copy of the GNU General Public License along
 -  with this program; if not, write to the Free Software Foundation, Inc.,
 -  51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
 -  
 -  
-->
<?xml version="1.0" encoding="ISO-8859-1"?>
<refentry id="VS-D-6">
  <refmeta>
    <refentrytitle>DAV Maintenance</refentrytitle>
    <refmiscinfo>tutorial</refmiscinfo>
  </refmeta>
  <refnamediv>
    <refname>Content Types and Names</refname>
    <refpurpose>Mapping between resource content types, and name extensions</refpurpose>
  </refnamediv>

<refsect1 id="VS-D-6a">
<title>Preliminaries</title>
<itemizedlist mark="bullet">
  <listitem>The user-agents (browsers) may supply the content-type for an uploaded resource.</listitem>
  <listitem>A resource in the WebDAV repository can have a supplied content-type associated to the resource.</listitem>
  <listitem>If the content type is not supplied, the WebDAV server does a mapping from file extension to mime type.</listitem>
  <listitem>Mapping table is held in WS.WS.SYS_DAV_RES_TYPES and used by http_mime_type() function.</listitem>
  <listitem>Using Conductor UI can be defined additional MIME type: Go to the "Web Application Server" tab, then go to the "Content Management" tab and then go to the "Resource Types" sub-tab. Here press the "Create New Type" button.</listitem>
</itemizedlist>
</refsect1>

<refsect1 id="VS-D-6b">
<title>Mime lookup example</title>
<para>The example requests a file, then the name of the file will be matched against the mime types table. The resulting mime type is displayed.</para>
</refsect1>
</refentry>
