This documentation is for the old version. Go to the latest Upload Suite docs

ClientEvents.BeforeUpload Property

Gets or sets an array of BeforeUpload event handlers.


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.


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


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