Setting Content Type based on file extension