content

Fetch content from a file

Note:
  • This file attribute is applicable only to the files uploaded using the file upload field in Zoho Creator.
  • 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

Share this post : FacebookTwitter

Still can't find what you're looking for?

Write to us: support@zohodeluge.com