Jelajahi Sumber

Add non-standard mime types 1

image/x-ms-bmp
Visman 4 tahun lalu
induk
melakukan
465f02b981
1 mengubah file dengan 4 tambahan dan 0 penghapusan
  1. 4 0
      app/Core/Files.php

+ 4 - 0
app/Core/Files.php

@@ -37,6 +37,8 @@ class Files
         'image/png'  => 'png',
         'image/bmp'  => 'bmp',
         '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-smv' => 'smv',
         'x-conference/x-cooltalk' => 'ice',
+# non-standard mime types
+        'image/x-ms-bmp' => 'bmp',
     ];
 
     public function __construct(/* string|int */ $maxFileSize, /* string|int */ $maxImgSize)