Exports text as a file.



text: The text to be exported.

encoding: The encoding of the text. Supported encodings are: ascii, base64, binary, hex, ucs2, utf8, or latin1. If unspecified, defaults to utf8.

name: An optional file name. If unspecified, defaults to Unnamed. NOTE: If no extension is specified, the file will be txt (will download as Unnamed.txt). If the filename is set as something like "filename.csv" then the format will download as csv.

media type: An optional MIME type describing the file content. If unspecified, defaults to text/plain.


file: A file containing the text.

Last updated