aboutsummaryrefslogtreecommitdiffstats
path: root/include/attach.php
diff options
context:
space:
mode:
authormarijus <mario@mariovavti.com>2015-01-22 12:12:42 +0100
committermarijus <mario@mariovavti.com>2015-01-22 12:12:42 +0100
commitd94114ec986ba1440b74d41bec8896db186f8eb2 (patch)
treeb7cbe6c6d5cea12d28e731d4cec735a7dadbfffc /include/attach.php
parentc05f0ec40784a17de2e675c4d684d3a0c54228b0 (diff)
downloadvolse-hubzilla-d94114ec986ba1440b74d41bec8896db186f8eb2.tar.gz
volse-hubzilla-d94114ec986ba1440b74d41bec8896db186f8eb2.tar.bz2
volse-hubzilla-d94114ec986ba1440b74d41bec8896db186f8eb2.zip
add some mimetypes
Diffstat (limited to 'include/attach.php')
-rw-r--r--include/attach.php21
1 files changed, 21 insertions, 0 deletions
diff --git a/include/attach.php b/include/attach.php
index a6757744f..c66ba40d5 100644
--- a/include/attach.php
+++ b/include/attach.php
@@ -64,6 +64,11 @@ function z_mime_content_type($filename) {
'qt' => 'video/quicktime',
'mov' => 'video/quicktime',
'ogg' => 'application/ogg',
+ 'opus' => 'audio/ogg',
+ 'webm' => 'audio/webm',
+ 'webm' => 'video/webm',
+ 'mp4' => 'audio/mp4',
+ 'mp4' => 'video/mp4',
// adobe
'pdf' => 'application/pdf',
@@ -81,6 +86,22 @@ function z_mime_content_type($filename) {
// open office
'odt' => 'application/vnd.oasis.opendocument.text',
'ods' => 'application/vnd.oasis.opendocument.spreadsheet',
+ 'odp' => 'application/vnd.oasis.opendocument.presentation',
+ 'odg' => 'application/vnd.oasis.opendocument.graphics',
+ 'odc' => 'application/vnd.oasis.opendocument.chart',
+ 'odf' => 'application/vnd.oasis.opendocument.formula',
+ 'odi' => 'application/vnd.oasis.opendocument.image',
+ 'odm' => 'application/vnd.oasis.opendocument.text-master',
+ 'odb' => 'application/vnd.oasis.opendocument.base',
+ 'odb' => 'application/vnd.oasis.opendocument.database',
+ 'ott' => 'application/vnd.oasis.opendocument.text-template',
+ 'ots' => 'application/vnd.oasis.opendocument.spreadsheet-template',
+ 'otp' => 'application/vnd.oasis.opendocument.presentation-template',
+ 'otg' => 'application/vnd.oasis.opendocument.graphics-template',
+ 'otc' => 'application/vnd.oasis.opendocument.chart-template',
+ 'otf' => 'application/vnd.oasis.opendocument.formula-template',
+ 'oti' => 'application/vnd.oasis.opendocument.image-template',
+ 'oth' => 'application/vnd.oasis.opendocument.text-web'
);
$dot = strpos($filename, '.');