OpenWGA 7.9 - TMLScript reference

TMLForm "tmlform"
Method :

getFileText(filename)

On object TMLForm "tmlform"
Usage Returns the text contents of an uploaded file
Description This method reads the contents of the file as text (in the default platform encoding) and returns it as string. It throws an error if the file contents cannot be interpreted as text.

Do not use this method to read the contents of overly large files as it will load the complete contents into the Java heap memory. This may let your server run out of memory resources.
Parameters filename (String):
Name of the file
Return value Text contents of the file (String)
Allowed in script types
  • WebTML pages and normal WebTML actions
  • Master actions
    portletevent