9 Commits

Author SHA1 Message Date
0fcd434c97 Fix #19838: Added yii\helpers\BaseFileHelper::getExtensionByMimeType() to get the most common extension for a given MIME type 2023-05-19 22:56:47 +03:00
0a811cbd0d Fix #19837: Fixed processing of numeric file extensions in yii\build\controllers\MimeTypeController::generateMimeTypesFile()
Fixed processing of nummeric file extensions in `\yii\build\controllers\MimeTypeController::generateMimeTypesFile()` and added common image file types (https://developer.mozilla.org/en-US/docs/Web/Media/Formats/Image_types#common_image_file_types)
2023-05-19 00:28:48 +03:00
95b0e6010e Fix #19683: Updated framework\mimeType.php to the actual value. Fix typo in build/controllers/MimeTypeController.php 2023-02-11 19:21:51 +03:00
161526cd41 HTTPS everywhere (#19503) 2022-08-03 12:32:18 +03:00
1382aea4a8 Fix #19295: Added alias text/rtf for mime-type application/rtf 2022-04-07 00:14:00 +04:00
14c42b7bb5 Added jfif to mimeTypes.php (#19338)
* Added `jfif` to mimeTypes.php

Added the 'image/jpeg' mime type for `.jfif` files (https://en.wikipedia.org/wiki/JPEG_File_Interchange_Format)

* Update MimeTest.php

Added 'jfif' extension to MimeTest
2022-04-05 08:28:41 +02:00
7b8c29d874 Fix #19243: Handle finfo_open for tar.xz as application/octet-stream on PHP 8.1 2022-02-19 23:45:20 +03:00
7fd85d2268 Fix MimeTest 2022-02-11 16:39:05 +03:00
4cb2dfef1a Add more tests for helpers (#18675) 2021-05-25 10:28:57 +03:00