TotalBytes Property

Object: SoftArtisans.SAFile
Syntax: TotalBytes
Type: ASP: Long Integer; .NET: System.UInt64
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 .

See also the TotalBytes property for the SAFileUp object.

Examples:
ASP <%=fileUpload.Form("File1").TotalBytes%> total bytes were written to disk for the first uploaded file.
C# SaFile file1 = (SaFile)fileUpload.Form["File1"];
ulong num = file1.TotalBytes;
results.Append(num + " total bytes were written to disk for the " +
"first uploaded file.");
VB.NET Dim file As SaFile = CType(fileUpload.Form("File1"), SaFile)
Dim num As UInt64 = file.TotalBytes
results.Append(num + " total bytes were written to disk for the " + _
"first uploaded file.")

Copyright © 2010 SoftArtisans, Inc. All rights reserved.