Size (UploadedFile Object)

Dundas

Size (UploadedFile Object)

Overview

Read-only property which stores the uploaded file's size in bytes.

Syntax

[long] = Object.Size

The Size property syntax has the following parts:

Part

Description

long

The size of the uploaded file in bytes.

Remarks

To use the Files collection (which stores UploadedFile objects) you must first call either the Save or SaveToMemory methods.

If you want to set the allowable size of a file to be uploaded use the MaxFileSize property.