This class represents a file converter.

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

Syntax

PHP

class Converter {
}

Remarks

Image Uploader Flash allows sending up to three so-called converted files for each of the user-selected files. These files are configured using the Converters property of the ImageUploaderFlash object. This property accepts a collection of Converter instances. Each converter describes one file (source, thumbnail, icon, or ZIP archive) to be uploaded for every file the user selects.

For instance, you set the following collection of converters:

PHP

$uploader = new ImageUploaderFlash("Uploader1");
        
$converters = &$uploader->getConverters();
$converter = new Converter();
$converter->setMode("*.*=SourceFile");
$converters[] = $converter;
$converter = new Converter();
$converter->setMode("*.*=Thumbnail;*.*=Icon");
$converter->setThumbnailWidth(120);
$converter->setThumbnailHeight(120);
$converter->setThumbnailFitMode("Fit");
$converters[] = $converter;

It means that Image Uploader Flash will send an original file and its resized copy or icon. So if a user selects two files (a JPEG image and a PDF document) Image Uploader Flash will send four files:

  • the JPEG image and the PDF file themselves,
  • a resized copy of the image and a PDF icon.