files Class ActiveX/Java Uploader JavaScript

Supported browsers: Internet ExplorerFirefoxGoogle ChromeSafari

This class represents a collection of files added to the upload pane. See Example for details.

For a list of all members of this class, see files Members.

Syntax

JavaScript
$au.files = function() {
}

Examples

This example rotates all the selected images in the upload pane by 90 degrees counterclockwise.

JavaScript
function rotateSelected(){
	var count = $au.uploader('Uploader1').files().count();
	for (var i = 0; i < count; i++){
		if ($au.uploader('Uploader1').files().get(i).selected()){
			var angle = $au.uploader('Uploader1').files().get(i).angle();
			angle = (angle - 90) % 360;
			$au.uploader('Uploader1').files().get(i).angle(angle);
		}
	}
}

See Also

Reference