Creating or configuring forms > Configuring the <components> element > Configuring an upload file componenet

6.1.17 Configuring an upload file componenet

A file upload component allows users to upload files from their local computer to the cluster head.

To add/delete/modify an upload file component

  1. Open the appropriate XML file located in the Viewpoint home directory. Locate the <components> element.
  2. Create the <component> with a unique id.
  3. Insert the <file-upload> element.
  4. Use any of the four optional child elements desired:
  5. The server and cluster paths must be different if you are using an SSH connection to the localhost for Moab; otherwise the file will be deleted.

    <file-upload>
      <server-path>/tmp</server-path>
      <cluster-path>/var/tmp</cluster-path>
      <max-file-size>10000000</max-file-size>
      <form-submit>/fileupload/file</form-submit>
    </file-upload >

Related topics