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