This documentation is for the old version. Go to the latest Upload Suite docs

ImageUploader.MessageRedirectText Property

Supported in: ActiveX , Java

This property is obsolete.

Text of the message which states that the server returns HTTP code 3xx (e.g. 302 or 304), i.e. when it returns a redirect response.

Syntax

Initialize

JavaScript
<script type="text/javascript" src="iuembed.js">  </script>
<script type="text/javascript">
var iu = new ImageUploaderWriter("ImageUploaderID", 610, 500);
//...other params...
iu.addParam("MessageRedirectText", "The server attempted to redirect you to [Name], but server redirects are not supported.");
//...other params...
iu.writeHtml();
</script>

Get/Set Value in Runtime

JavaScript
getImageUploader("ImageUploaderID").setMessageRedirectText(value);
value = getImageUploader("ImageUploaderID").getMessageRedirectText();

Property Value

A string value that specifies a text of the message displayed when server tries to redirect. To disable this message, set it to an empty string.

To be able to display additional information in this error message (the page to redirect), a special keyword is used:

[Name]
replaced by the address of the page the server attempted to redirect to.

Default value is "The server attempted to redirect you to [Name], but server redirects are not supported.".

Remarks

If you want to redirect the user after upload, you should use the RedirectUrl property instead.

This property is necessary for localization of Image Uploader.

See Also

Manual

Reference