EZP-23390: IOService loads whole file to get mime type

https://jira.ez.no/browse/EZP-23390

Uses merged legacy PR: https://github.com/ezsystems/ezpublish-legacy/pull/1082
where?