JSPSMARTUPLOAD : DOCUMENTATION
Files Object
Last modified: March 1st, 2000
© 2000 Advantys. All rights reserved.

getCount

The getCount property returns the number of elements in the collection.

Syntax
.getCount

Return Value
Returns a int value which is the number of elements in the collection.

Example

<%
out.println("NbFiles=" + myUpLoad.getFiles().Count());
%>

getFile

The getFile method access to an item in the collection.

Syntax
.getFile(key)

Return Value
Returns a file object of the collection corresponding to the key.

Examples

<%
for (int i=0;i<myUpLoad.getFiles().count();i++){
  out.println("File=" + myUpLoad.getFiles().getFile(i).getFileName());
}
%>

getSize

The getSize property returns the size of the collection.

Syntax
.getSize

Return Value
Returns a Long value which is the size of the collection.

Example

<%
out.println("File's size uploaded : " + myUpLoad.getFiles().getSize());
%>

© 2000 Advantys. All rights reserved.