Aurigma Image Uploader 6.1 Dual
ImageUploader.MessageDimensionsAreTooLargeText Property
See Also Supported in: ActiveX Java

Text of the error message which states that the width or height of the selected image is too large.

# Syntax

##### Initialize

JavaScript | Copy Code
--- | ---
    <script type="text/javascript" src="iuembed.js"></script>
    <script type="text/javascript">
    var iu = new ImageUploaderWriter("ImageUploaderID", 610, 500);
    //...other params...
    iu.addParam("MessageDimensionsAreTooLargeText", "The image [Name] cannot be selected. This image dimensions ([OriginalImageWidth]x[OriginalImageHeight]) are too large. The image should be smaller than [MaxImageWidth]x[MaxImageHeight].");
    //...other params...
    iu.writeHtml();
    </script>

##### Get/Set Value in Runtime

JavaScript | Copy Code
--- | ---
    getImageUploader("ImageUploaderID").setMessageDimensionsAreTooLargeText(value);
    value = getImageUploader("ImageUploaderID").getMessageDimensionsAreTooLargeText();

##### Property Value

A string value that specifies a text of the error message which states that the width or height of the selected image is too large (i.e. exceeds the MaxImageWidth or MaxImageHeight property). To disable this message, set it to an empty string.

To be able to display additional information in this error message (like FileName, actual image size, and the limit you specified), special keywords are used:

[Name]
  replaced by the name of the file which cannot be added.
[OriginalImageWidth]
  replaced by the actual width of the original file (in pixels).
[OriginalImageHeight]
  replaced by the actual height of the original file (in pixels).
[MaxImageWidth]
  replaced by the maximum allowed width specified with the MaxImageWidth (in pixels).
[MaxImageHeight]
  replaced by the maximum allowed height specified with the MaxImageHeight (in pixels).

Default value is "The image [Name] cannot be selected. This image dimensions ([OriginalImageWidth]x[OriginalImageHeight]) are too large. The image should be smaller than [MaxImageWidth]x[MaxImageHeight].".

# Remarks

This property is necessary for localization of Image Uploader.

Note
If you want to specify a multiline text use the `"\n"` sequence to separate lines.

# See Also

##### Examples

Specifying Restrictions for Image Dimensions
Localization

##### Reference

MessageBoxTitleText Property
MessageCannotConnectToInternetText Property
MessageDimensionsAreTooSmallText Property
MessageFileSizeIsTooSmallText Property
MessageMaxFileCountExceededText Property
MessageMaxFileSizeExceededText Property
MessageMaxTotalFileSizeExceededText Property
MessageNoInternetSessionWasEstablishedText Property
MessageNoResponseFromServerText Property
MessageRetryOpenFolderText Property
MessageServerNotFoundText Property
MessageUnexpectedErrorText Property
MessageUploadCancelledText Property
MessageUploadCompleteText Property
MessageUploadFailedText Property
MessageUserSpecifiedTimeoutHasExpiredText Property
DimensionsAreTooLargeText Property
DimensionsAreTooSmallText Property
MaxImageHeight Property
MaxImageWidth Property
MinImageHeight Property
MinImageWidth Property