Преглед изворни кода

Add non-standard mime types 1

image/x-ms-bmp
Visman пре 4 година
родитељ
комит
465f02b981
1 измењених фајлова са 4 додато и 0 уклоњено
  1. 4 0
      app/Core/Files.php

+ 4 - 0
app/Core/Files.php

@@ -37,6 +37,8 @@ class Files
         'image/png'  => 'png',
         'image/png'  => 'png',
         'image/bmp'  => 'bmp',
         'image/bmp'  => 'bmp',
         'image/webp' => 'webp',
         'image/webp' => 'webp',
+# non-standard mime types
+        'image/x-ms-bmp' => 'bmp',
     ];
     ];
 
 
     /**
     /**
@@ -818,6 +820,8 @@ class Files
         'video/x-sgi-movie' => 'movie',
         'video/x-sgi-movie' => 'movie',
         'video/x-smv' => 'smv',
         'video/x-smv' => 'smv',
         'x-conference/x-cooltalk' => 'ice',
         'x-conference/x-cooltalk' => 'ice',
+# non-standard mime types
+        'image/x-ms-bmp' => 'bmp',
     ];
     ];
 
 
     public function __construct(/* string|int */ $maxFileSize, /* string|int */ $maxImgSize)
     public function __construct(/* string|int */ $maxFileSize, /* string|int */ $maxImgSize)