Add content-type in the file based on the text-format once issue 1415234 is resolved.