Implemented client-side mime-type inference