@wuiInputFile(NAME, [SIZE], [ATTRS])

Inserts a "file" input field within a form (user uploads file).

The following parameters are recognized:

NAME

The name to reference the VALUE with.

[SIZE]

The size (in characters) of the field (defaults to 92).

[ATTRS]

Optional attributes to include in the <input> entity (other than "type", "class", "size" and "name").

Inserts a input field which allows user to select a file from their system to upload to the NST probe system. NOTE: The form MUST have the "enctype" attribute set to "multipart/form-data" in order to upload the file from teh client.

Example of using the macro:

@wuiInputFile("nagious_cfg","70")

Assuming the com.ccg.macros.at.All class is within your CLASSPATH and the config/html.at macros file has been generated (Hint: run make atmacros in the wui directory), a developer should be able to run the above example by copy/pasting from below:

[root@probe root]# java com.ccg.macros.at.All <<EOF
@include("config/html.at",,"d")
@wuiInputFile("nagious_cfg","70")
EOF

This macro is defined as:


<table @htmlAttr("style","width: 100%; padding: 0px; border-style: none;")
       @htmlAttr("cellspacing","0") >

  <colgroup>
    <col @htmlAttr("width","100%")>
  </colgroup>

  <tr>
    <td @htmlAttr("style","width: 100%;")>
      <input @htmlAttr("type","file")
             @htmlAttr("name","@param(0)")
             @htmlAttr("size","@fnb("@param(1)","92")")
             @htmlAttr("style","width: 100%;")
             @htmlAttr("class","wuiInputFile")
             @param(2) />
    </td>
  </tr>
</table>