implement full compliance of content-type for uploaded files w.r.t. RFC