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

events.beforeUpload Property

Gets or sets an array of BeforeUpload event handlers.

Syntax

JavaScript Initialize
$au.imageUploaderFlash({
    events: {
        //...other params...
        beforeUpload: [],
        //...other params...
    }
})
Get/Set Value at Runtime
$au.imageUploaderFlash('uploaderID').events().beforeUpload(value);
value = $au.imageUploaderFlash('uploaderID').events().beforeUpload();

Property Value

Type: $au.event

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