]> git.mxchange.org Git - friendica.git/blobdiff - src/Util/Mimetype.php
Changes:
[friendica.git] / src / Util / Mimetype.php
index df6cf33f7b9944e90bbd2fc6e4266702695f0286..53deff8f204b2c3cc5bfcba3694004f16da8e941 100644 (file)
@@ -1,6 +1,6 @@
 <?php
 /**
- * @copyright Copyright (C) 2010-2022, the Friendica project
+ * @copyright Copyright (C) 2010-2024, the Friendica project
  *
  * @license GNU AGPL version 3 or any later version
  *
@@ -33,7 +33,7 @@ class Mimetype
        public static function getContentType(string $filename)
        {
                $mime_types = [
-       
+
                        /*'txt' => 'text/plain',
                        'htm' => 'text/html',
                        'html' => 'text/html',
@@ -44,7 +44,7 @@ class Mimetype
                        'xml' => 'application/xml',
                        'swf' => 'application/x-shockwave-flash',
                        'flv' => 'video/x-flv',
-       
+
                        // images
                        'png' => 'image/png',
                        'jpe' => 'image/jpeg',
@@ -57,14 +57,14 @@ class Mimetype
                        'tif' => 'image/tiff',
                        'svg' => 'image/svg+xml',
                        'svgz' => 'image/svg+xml',
-       
+
                        // archives
                        'zip' => 'application/zip',
                        'rar' => 'application/x-rar-compressed',
                        'exe' => 'application/x-msdownload',
                        'msi' => 'application/x-msdownload',
                        'cab' => 'application/vnd.ms-cab-compressed',
-       
+
                        // audio/video
                        'mp3' => 'audio/mpeg',
                        'wav' => 'audio/wav',
@@ -75,14 +75,14 @@ class Mimetype
                        'avi' => 'video/x-msvideo',
                        'wmv' => 'video/x-ms-wmv',
                        'wma' => 'audio/x-ms-wma',
-       
+
                        // adobe
                        'pdf' => 'application/pdf',
                        'psd' => 'image/vnd.adobe.photoshop',
                        'ai' => 'application/postscript',
                        'eps' => 'application/postscript',
                        'ps' => 'application/postscript',
-       
+
                        // ms office
                        'doc' => 'application/msword',
                        'docx' => 'application/vnd.openxmlformats-officedocument.wordprocessingml.document',
@@ -91,12 +91,12 @@ class Mimetype
                        'xlsx' => 'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet',
                        'ppt' => 'application/vnd.ms-powerpoint',
                        'pptx' => 'application/vnd.openxmlformats-officedocument.presentationml.presentation',
-       
-       
+
+
                        // open office
                        'odt' => 'application/vnd.oasis.opendocument.text',
                        'ods' => 'application/vnd.oasis.opendocument.spreadsheet',*/
-       
+
                        // Assembled from the original Friendica list and
                        // lists from http://www.freeformatter.com/mime-types-list.html
                        // and http://www.webmaster-toolkit.com/mime-types.shtml
@@ -1088,7 +1088,7 @@ class Mimetype
                        'zoo' => 'application/octet-stream',
                        'zsh' => 'text/x-script.zsh'
                ];
-       
+
                $dot = strrpos($filename, '.');
                if ($dot !== false) {
                        $ext = strtolower(substr($filename, $dot + 1));