Open MP3 attachments (#3603)
This commit is contained in:
parent
7572edf59a
commit
375bdd8f8d
|
|
@ -113,6 +113,8 @@ class FileHelper extends Base
|
|||
switch (get_file_extension($filename)) {
|
||||
case 'pdf':
|
||||
return 'application/pdf';
|
||||
case 'mp3':
|
||||
return 'audio/mpeg';
|
||||
}
|
||||
|
||||
return null;
|
||||
|
|
|
|||
Loading…
Reference in New Issue