developer logo

sv:temporaryFile

The sole purpose of a sv:temporaryFile is to represent a java.io.File as javax.jcr.Node in order to support file-related operations in the API. Temporary file nodes are very volatile and short-lived.

  • They have no parent, nor any children.
  • A temporary file node can never be looked up by its identifier and it should never be cached.

Files uploaded to Web/RESTApps are exposed as sv:temporaryFile (see req.file and res.sendFile).

Node name

Name

Type and description

<file-name>

Dynamic


The name of the file

Properties

Name

Type and description

fileName

javax.jcr.PropertyType.STRING


The name of the file



length

javax.jcr.PropertyType.LONG


The length of the file

SiteVision Utility API tip!

  • FileUtil exposes methods to operate on nodes of type sv:temporaryFile.
  • ImageUtil exposes methods to operate on nodes of type sv:temporaryFile.
  • Requester can send and fetch binaries represented as sv:temporaryFile nodes.

Note! This node type was introduced in SiteVision 4.5.4