You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// $path is a content of an uploaded woff or woff2 file$finfo = new \finfo(\FILEINFO_MIME_TYPE));
$mimeType = $finfo->file($path); // returns "application/octet-stream"echo$mimeType;
Resulted in this output:
returns "application/octet-stream"
But I expected this output instead:
expected result is: "font/woff"
Mime type has been fixed in libmagic/file in version 5.42.