mirror of
https://git.code.sf.net/p/seeddms/code
synced 2025-05-13 05:01:43 +00:00
add text/markdown in fileExtension()
This commit is contained in:
parent
62c2606d09
commit
f9328a5b7c
|
@ -172,7 +172,7 @@ class SeedDMS_Core_File {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @param $string mimetype
|
* @param $string mimetype
|
||||||
* @return string
|
* @return string file extension with the dot or an empty string
|
||||||
*/
|
*/
|
||||||
static function fileExtension($mimetype) { /* {{{ */
|
static function fileExtension($mimetype) { /* {{{ */
|
||||||
switch($mimetype) {
|
switch($mimetype) {
|
||||||
|
@ -267,6 +267,7 @@ class SeedDMS_Core_File {
|
||||||
'text/x-log' => 'log',
|
'text/x-log' => 'log',
|
||||||
'audio/x-m4a' => 'm4a',
|
'audio/x-m4a' => 'm4a',
|
||||||
'application/vnd.mpegurl' => 'm4u',
|
'application/vnd.mpegurl' => 'm4u',
|
||||||
|
'text/markdown' => 'md',
|
||||||
'audio/midi' => 'mid',
|
'audio/midi' => 'mid',
|
||||||
'application/vnd.mif' => 'mif',
|
'application/vnd.mif' => 'mif',
|
||||||
'video/quicktime' => 'mov',
|
'video/quicktime' => 'mov',
|
||||||
|
|
Loading…
Reference in New Issue
Block a user