CodeCharge Studio

FileSize Run-Time Property (ASP)

Applies to

FileUpload Component

Type

number

Access

read-only

Syntax

object.FileSize

Description

Specifies the size (in bytes) of the file that has been uploaded to the server. Value of this property is set while the file is processed by the server and it is used later on to verify if the size of the file is not greater than the specified file size limit (held in the FileSizeLimit property).

Example

The following AfterProcessFile event procedure adds the file size value (as the GET parameter) to the redirection URL (see the Redirect variable reference):
Function attachments_fu_AfterProcessFile() 

 Redirect = Redirect & "filesize=" & attachments.fu.FileSize

End Function

See also

FileSizeLimit property


On-line, printable versions and updates