UploadItem Class

The  UploadItem  class holds the information about the non- file fields of the Form. It contains the names and values of all the fields present on the Form. The array of this class can be retrieved by calling the  'form' method on  Upload  class.

Property Descriptions

Property Signature:   String getName()

This property returns the name of the field.

Example: accessing the names of the Form fields

Html page:

   <HTML>
   <HEAD>
   <TITLE>Getting names of fields </TITLE>
   </HEAD>
   <BODY>
   <FORM enctype="multipart/form-data" method="post" action="sample2.asp">
   <SELECT NAME="CHIOICE" >
   <OPTION>Image
   <OPTION>Text
   <OPTION>Source Code
   <OPTION>Archive
   </SELECT>
   <BR>
   <INPUT TYPE=TEXT NAME="DESCRIPTION"><BR>
   <INPUT TYPE=FILE NAME="FILE1">
   <BR>
   <INPUT TYPE="submit">
   </FORM>
   </BODY>
   </HTML>

Script for 'sample2.asp':

   <%
      Set obj = Server.CreateObject("Persits.Upload")
      For Each Item in obj.form
         Response.Write  Item.getName & "<BR>"
      Next
   %>

Property Signature:   String getValue()

This property returns the value of the field.

Example: accessing the values of the Form fields

Html page:

   <HTML>
   <HEAD>
   <TITLE>Getting values of fields </TITLE>
   </HEAD>
   <BODY>
   <FORM enctype="multipart/form-data" method="post" action="sample2.asp">
   <SELECT NAME="CHIOICE" >
   <OPTION>Image
   <OPTION>Text
   <OPTION>Source Code
   <OPTION>Archive
   </SELECT>
   <BR>
   <INPUT TYPE=TEXT NAME="DESCRIPTION"><BR>
   <INPUT TYPE=FILE NAME="FILE1">
   <BR>
   <INPUT TYPE="submit">
   </FORM>
   </BODY>
   </HTML>

Script for 'sample2.asp':

   <%
      Set obj = Server.CreateObject("Persits.Upload")
      For Each Item in obj.form
         Response.Write Item.getValue & "<BR>"
      Next
   %>

If you require technical support please send complete details about the problem you are having to support@halcyonsoft.com.


Copyright © 1998-2002, Halcyon Software Inc. All rights reserved.