Aurigma Image Uploader 4.8 Dual
ImageUploader.UploadThumbnailFallbackMode Property
See Also Supported in: ActiveX Java

Switch that specifies whether the original file or an icon should be sent to the server, if the specified upload thumbnail could not be created.

# Syntax

##### Get/Set Value in Runtime

JavaScript | Copy Code
--- | ---
    getImageUploader("ImageUploaderID").setUploadThumbnailFallbackMode(Index, value);
    value = getImageUploader("ImageUploaderID").getUploadThumbnailFallbackMode(Index);

##### Parameters

Index

  A non-negative integer that specifies an index of the upload thumbnail (one-based). It should not exceed `UploadThumbnailCount - 1` . If extra upload thumbnails are required, use the UploadThumbnailAdd method to add them.

##### Property Value

One of the following values:

String value | Integer value | Description
--- | --- | ---
Icon | 0 | Send an icon.
SourceFile | 1 | Send the original file.

# Remarks

If `SourceFile` (or 1) is set as the value of this property, and the ThumbnailXXXScceeded_NN POST field contains `false`, the original image will be received on the server. Its name will be constructed as follows: OriginalFileName.OriginalFileExtension_ThumbnailXXX , where OriginalFileName.OriginalFileExtension will be replaced with the original file name and extension, and XXX will be replaced with the index of the thumbnail.

Image Uploader can generate multiple thumbnails per one file sent to the server. To configure sizes of thumbnails and other parameters, you can manipulate a list of upload thumbnail settings. It can be done two ways:

1. Use `UploadThumbnailNXXX` parameters, where N is a number in range from 1 to 3.
2. Use the UploadThumbnailAdd method in JavaScript to add extra thumbnail sizes, and `UploadThumbnailXXX` properties to change specific settings.

First method is simpler, however it allows to upload not more than 3 thumbnails per one file. The second one does not have any limitation on the number of thumbnails.

To get an upload thumbnail on the server use the `UploadThumbnailX` HTTP POST field, where X is an index of the upload thumbnail.

Note
The index of upload thumbnail list is zero-based. However by default upload thumbnail with zero index is disabled (its fit mode is `Off`).

# See Also

##### Examples

POST Field Reference

##### Reference

UploadThumbnailAdd Method
UploadThumbnailBackgroundColor Property
UploadThumbnailCompressOversizedOnly Property
UploadThumbnailCopyExif Property
UploadThumbnailCopyIptc Property
UploadThumbnailFitMode Property
UploadThumbnailHeight Property
UploadThumbnailJpegQuality Property
UploadThumbnailResizeQuality Property
UploadThumbnailWatermark Property
UploadThumbnailWidth Property