Allow RTF files to be uploaded.

From #6417.