Size Property


Returns the uploaded file's size in bytes.


Value Type: Long
Parameters: None 
Remarks:

This property is read-only


Usage example:

' This sample writes the size of the last uploaded file

<% Set Uploader = Server.CreateObject("MailBee.Uploader")
Uploader.ParseRequest Request.BinaryRead(Request.TotalBytes)
If (Uploader.FormFiles.Count <> 0) Then
   Set File = Uploader.FormFiles(Uploader.FormFiles.Count)
   Response.Write File.Size
End If %>

See Also:

FormElements Collection | FormFiles Collection | FormElement Object | FormFile Object | Uploader Object


Copyright © 2002-2024, AfterLogic Corporation. All rights reserved.