Defaults to application/octet-stream when filetype is not set