Choose where you’d like to start

Fetch content from a file

Note:
  • This file attribute is applicable only to the files uploaded using the file upload field in Zoho Creator.
  • This task can extract file content upto 5 MB.  Some older accounts would allow extraction up to 50 MB which will eventually be reduced without affecting the existing scripts. Learn more.
  • To fetch content of files fetched using invoke URL task in any service, use getFileContent function.

Overview

The file attribute - content returns the content of the file uploaded in the specified Zoho Creator field.

Syntax

<variable> = <field_link_name>.content;

where:

ParamsData typeDescription

<variable>

TEXT

The content of the file.

Note: File types that usually contain only text values, (for example .txt.csv etc.) will return the content accurately. File types that usually contain images, (for example .pdf, etc.) will return junk values.

<file_name>

TEXT

The link name of the file upload field.

Example

The following example fetches the content of the file upload field in Zoho Creator.

 file_content = fileUpload.content;

where:

file_content
The TEXT that represents the content of the specified file.
fileUpload
The link name of the file upload field

Related Links

Get Started Now

Execute