Class FileAPI
Extends
ContentObjectAPI, TagContainerAPI.
Defined in: file.js.
Constructor Attributes | Constructor Name and Description |
---|---|
FileAPI()
|
Field Attributes | Field Name and Description |
---|---|
<static> |
FileAPI.WRITEABLE_PROPS
|
Method Attributes | Method Name and Description |
---|---|
<static> |
FileAPI.binURL()
Retrieve the URL of this file's binary contents.
|
Field Detail
<static>
{Writable properties for the page object.}
FileAPI.WRITEABLE_PROPS
Method Detail
<static>
{string}
FileAPI.binURL()
Retrieve the URL of this file's binary contents. You can use this to
download the file from the server or to display an image.
WARNING! Never ever store this URL in a page for users to
load an image or to provide a download link. You should always refer
to published files from the backend. Referencing a file directly
using this link will put heavy load on you Gentics Content.Node CMS
Server.
- Returns:
- {string} Source URL of this file.