Infer content_type from Rails-like UploadedFile
Improve formatting