5 sub mime_type_from_ext {
 
   6   $main::lxdebug->enter_sub();
 
  11   # TODO: Mittels Standardmodulen implementieren.
 
  12   my %mime_types = ('ods'  => 'application/vnd.oasis.opendocument.spreadsheet',
 
  13                     'odt'  => 'application/vnd.oasis.opendocument.text',
 
  14                     'pdf'  => 'application/pdf',
 
  15                     'sql'  => 'text/plain',
 
  16                     'txt'  => 'text/plain',
 
  17                     'html' => 'text/html',
 
  22   $main::lxdebug->leave_sub();
 
  24   return $mime_types{$ext};