OpenWGA 7.10 - TMLScript reference

TMLForm "tmlform"
Method :

getFile(filename)

On object TMLForm "tmlform"
Usage Returns a Java file object for an uploaded file
Description This method can be used to use uploaded form files with methods that need Java file objects (class java.io.File) as parameters, like WGA.createImageScaler() for instance.

The returned file is temporary and should not be modified in-place or deleted.
Parameters filename (String):
Name of the file
Return value A Java file object (Java- class java.io.File)
Allowed in script types
  • WebTML pages and normal WebTML actions
  • Master actions
    portletevent