ASPSMARTUPLOAD : DOCUMENTATION
Files Object
Last modified: August 1st, 1999 
© 2002 Advantys. All rights reserved.

Count

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

Syntax
.Count

Return Value
Returns an Long value which is the number of elements in the collection.

Example

<%
Response.Write("NbFiles=" & MyUpLoad.Files.Count)
%>

TotalBytes

The TotalBytes property returns the number of bytes in the collection.

Syntax
.TotalBytes

Return Value
Returns an Long value which is the number of elements in the collection.

Example

<%
response.Write("File's size uploaded : " & MyUpLoad.Files.TotalBytes )
%>

Item

The Item method access to a item in a collection. This is the default method of the collection object.

Syntax
.Item(key)

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

Examples

<%
For intI=1 to MyUpLoad.Files.count
Response.Write("ItemID=" & MyUpLoad.Files.Item(intI).Name)
Next

For intI=1 to MyUpLoad.Files.count
Response.Write("ItemID=" & MyUpLoad.Files(intI).Name)
Next

Response.Write("ItemID=" & MyUpLoad.Files("myFILE").Name)
%>

© 2002 Advantys. All rights reserved.