Better handle unknown file types
- return application/octet-stream rather than 'nil'