## Aurigma Image Uploader 6.1 Dual

# ImageUploader.BeforeUpload Event

- Collapse All Sections
- See Also
- Language Filter ( all languages )
- Supported in: ActiveX , Java

Raised when the upload is about to be started.

## Syntax

### JavaScript

    <script type="text/javascript" src="iuembed.js">  </script>
    <script type="text/javascript">
    function ImageUploaderID_BeforeUpload() {
    	//...your code...
    }
    var iu = new ImageUploaderWriter("ImageUploaderID", 610, 500);
    //...params...
    //...other event listeners...
    iu.addEventListener("BeforeUpload", "ImageUploaderID_BeforeUpload");
    //...other event listeners...
    iu.writeHtml();
    </script>

### Return Value

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

### Examples

- Adding Watermarks
- Uploading Additional Data with Files
- Resizing and Rotating Images

### Reference

- AfterUpload Event