set content type and file name