Use server-side mime type lookup.