TotalBytes Property

Object: SoftArtisans.FileUp
Syntax: TotalBytes
Type: Long Integer
Read/Write: Read Only
Description:

This property displays the actual numbers of bytes written to disk.

The value of TotalBytes is always less than or equal to the MaxBytes property .

If there is more than one file being uploaded in a single page, only the first one is displayed.

To examine the Total Bytes written of multiple files in a single upload, there is an equivalent property for each file object, i.e., fileUpload.Form("FILE1").TotalBytes. Please see SAFile.TotalBytes

Examples:
ASP The Total Bytes of this upload is <%=fileUpload.TotalBytes%>.
C# results.Append("The Total Bytes of this upload is: " +
fileUpload.TotalBytes);
VB.NET results.Append("The Total Bytes of this upload is: " +
fileUpload.TotalBytes)

Copyright © 2010 SoftArtisans, Inc. All rights reserved.