Gets or sets the conversion mode of the thumbnail.

Syntax

JavaScript

Initialize

$au.imageUploaderFlash({
    converters : [
        {
            //...other params...
            mode: "*.*=SourceFile",
            //...other params...
        }
    ]
})

Get/Set Value at Runtime

$au.imageUploaderFlash('uploaderID').converters().get(index).mode(value);
value = $au.imageUploaderFlash('uploaderID').converters().get(index).mode();

Property Value

Type: String

The conversion mode of the thumbnail.

Default value is "*.*=SourceFile".

Remarks

This property specifies a format string for a desired conversion mode. It consists of masks=mode pairs separated by semicolon. Each pair includes a set of file masks separated by comma and a corresponding mode. In general, this string has the following syntax:

mask11,mask12,...=mode1;mask21,mask22,...=mode2;...

When Image Uploader Flash prepares the upload request, it parses the conversion mode format string from the beginning to the end and extracts such pairs. For each file selected for upload Image Uploader Flash gives the first pair. If it finds a file mask in this pair which matches the file extension, it applies a corresponding mode. If no appropriate file mask found, Image Uploader Flash checks the next pairs in the same way.

Note

If there is no file mask corresponding to the original file extension or appropriate mode Image Uploader Flash does not send this converted file.

This is a list of supported conversion modes:

  • SourceFile means that the selected file will be uploaded from a user's computer without any changes.
  • Thumbnail works as follows. If the selected file is image, it will be resized using the parameters listed below and uploaded as JPEG file. Otherwise, a converted file will not be sent.
  • Icon means that a system icon associated with the selected file will be uploaded.
  • Zip means that a ZIP archive of the selected file will be uploaded.