Skip to content

peState - cWebFileUploadForm

Indicates the current state of the file upload

Type: Property
Access: Read/Write
Data Type: Integer
Parameters: None

Syntax

{ WebProperty=Client }
Property Integer peState
Access Type Syntax
Read Access: WebGet peState to IntegerVariable
Write Access: WebSet peState to IntegerVariable/Value

Description

This property indicates the current state of the file upload form. The state changes as the upload starts until the file upload has finished.

Valid state values are:

Constant Meaning
ciUploadStateEmpty The upload form is empty and displays 'No file selected'. During this state the piFileSize, psFileName and psFileMime properties are all clear.
ciUploadStateDisplay The upload form is showing the details of an existing file. During this state the piFileSize, psFileName and psFileMime properties are all set to match the details of the file shown in the form.
ciUploadStateSelected The upload form is showing a file selected on the client that is not yet uploaded.
ciUploadStateUploading The upload form is currently uploading a new file.
ciUploadStateFinished The upload form has finished uploading and is showing the details of this uploaded file.

About Web Properties

Each web property maintains two values: The regular property value is set during object creation and should not be changed during the lifetime of that object. To access that value, use the standard property Get and Set syntax.

The web property value is the local value stored at each client. This is synchronized to the client's local value whenever a server call is being processed. To access the web property value, use the WebGet and WebSet syntax above instead of the standard Get and Set syntax.

About Web Properties

Each web property maintains two values: The regular property value is set during object creation and should not be changed during the lifetime of that object. To access that value, use the standard property Get and Set syntax.

The web property value is the local value stored at each client. This is synchronized to the client's local value whenever a server call is being processed. To access the web property value, use the WebGet and WebSet syntax above instead of the standard Get and Set syntax.