add text/markdown in fileExtension()

This commit is contained in:
Uwe Steinmann 2022-11-17 11:32:45 +01:00
parent 62c2606d09
commit f9328a5b7c

View File

@ -172,7 +172,7 @@ class SeedDMS_Core_File {
/**
* @param $string mimetype
* @return string
* @return string file extension with the dot or an empty string
*/
static function fileExtension($mimetype) { /* {{{ */
switch($mimetype) {
@ -267,6 +267,7 @@ class SeedDMS_Core_File {
'text/x-log' => 'log',
'audio/x-m4a' => 'm4a',
'application/vnd.mpegurl' => 'm4u',
'text/markdown' => 'md',
'audio/midi' => 'mid',
'application/vnd.mif' => 'mif',
'video/quicktime' => 'mov',