ImageUploaderFlash.Type Property HTML5/Flash Uploader PHP

Supported technologies: Adobe FlashHTML 5

Gets or sets type or priority of HTML5/Flash Uploader controls.

Syntax

PHP Initialize
public function getType() {
}

public function setType($value) {
}

Property Value

Type: string

Type or priority of HTML5/Flash Uploader controls.

Possible values are:

  • html|flash the HTML5 control is used by default and the Flash control is used if the browser does not support HTML5
  • flash|html the Flash control is used by default and the HTML5 control is used if the browser does not support Flash
  • html the HTML5 control is used; if the browser does not support HTML5 the message appears
  • flash the Flash control is used; if the browser does not support Flash the message appears

You can use this property to change default controls priority or to specify the only control to use.

Default value is "html|flash".

Example

PHP
<?php
    $uploader = new ImageUploaderFlash("Uploader1");
    $uploader->setType("flash|html");
    $uploader->render();
?>

See Also

Reference