-
-
Notifications
You must be signed in to change notification settings - Fork 6.9k
Open
Description
The list of mime-types at https://svn.apache.org/repos/asf/httpd/httpd/trunk/docs/conf/mime.types and in the framework only includes the application/x-rar-compressed
type.
yii2/framework/helpers/mimeExtensions.php
Line 805 in 22889d3
'application/x-rar-compressed' => 'rar', |
However, the finfo function can return application/x-rar
for a RAR archive.
eg
(new finfo(FILEINFO_MIME_TYPE))->buffer('archive.rar'); // application/x-rar
Can we add this additional variant, or is this already an edge case that doesn't belong in the framework?
terabytesoftw and fiurius
Metadata
Metadata
Assignees
Labels
No labels