ClientEvents.BeforeUpload Property HTML5/Flash Uploader PHP

Supported technologies: Adobe FlashHTML 5

Gets or sets an array of BeforeUpload event handlers.

Syntax

PHP Initialize
public function &getBeforeUpload() {
}

public function setBeforeUpload($value) {
}

Property Value

Type: array

The string containing the name of BeforeUpload event handler or an array of handler names.

Remarks

This event fires when the upload is about to be started.

Returns

A boolean value (true or false). If event handler returns false (or zero), the upload is cancelled. Otherwise, upload begins immediately after the event handler finishes. This makes the event handler convenient for validating additional data provided by user.

See Also

Reference

Manual