{"action":"opened","issue":{"url":"https://api.github.com/repos/getkirby/kirby/issues/517","repository_url":"https://api.github.com/repos/getkirby/kirby","labels_url":"https://api.github.com/repos/getkirby/kirby/issues/517/labels{/name}","comments_url":"https://api.github.com/repos/getkirby/kirby/issues/517/comments","events_url":"https://api.github.com/repos/getkirby/kirby/issues/517/events","html_url":"https://github.com/getkirby/kirby/issues/517","id":190989118,"number":517,"title":"mp4 mime type missing on production + not in mimes array","user":{"login":"fourpixels","id":6096926,"avatar_url":"https://avatars.githubusercontent.com/u/6096926?v=3","gravatar_id":"","url":"https://api.github.com/users/fourpixels","html_url":"https://github.com/fourpixels","followers_url":"https://api.github.com/users/fourpixels/followers","following_url":"https://api.github.com/users/fourpixels/following{/other_user}","gists_url":"https://api.github.com/users/fourpixels/gists{/gist_id}","starred_url":"https://api.github.com/users/fourpixels/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fourpixels/subscriptions","organizations_url":"https://api.github.com/users/fourpixels/orgs","repos_url":"https://api.github.com/users/fourpixels/repos","events_url":"https://api.github.com/users/fourpixels/events{/privacy}","received_events_url":"https://api.github.com/users/fourpixels/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2016-11-22T12:40:43Z","updated_at":"2016-11-22T12:40:43Z","closed_at":null,"body":"Hey guys,\r\nI've been using Kirby with a great of joy, but I just stumbled upon something today. I've made a simple `video` snippet, which basically prints out a html5 video tag, along with sources. Long story short, I have a `video object` (Kirby's own, got from `$page->videos->find('filename')`) on which I call `$video->mime()`.\r\n\r\nThis works just fine on localhost, running Apache with PHP 5.6.25. But going on production, LiteSpeed with PHP 5.6.28 calling `$video->mime()` returns *nothing* (\"\"). I checked the code and ended up in `f.php`:\r\n\r\n```php\r\npublic static function mime($file) {\r\n...\r\n}\r\n```\r\n\r\nI've debugged all the options and it turned out none are available. It goes all the way until the end of the function:\r\n\r\n```php\r\nreturn f::extensionToMime(f::extension($file));\r\n```\r\n\r\nBut as I searched for, mp4 was not listed in the mime array. So here are a few questions:\r\n\r\n1. Why my server cannot find the mime type - am I missing something, some configuration?\r\n2. Is there any way I can make my server work properly finding the mime type?\r\n3. Why is not mp4 listed in the mime types array? I'm pretty new to php, so maybe some encodings are in play or something else?\r\n4. Is there any safe workaround, as I've currently hacked mp4 into the array with `video/mp4` value :smile: "}}
{"actor":{"display_login":"fourpixels"}}