Set content-type and content-disposition metadatas.