logo



Parameters - MyImageUploader
Below you will find a list of parameters. With these parameters MyImageUploader can be configured. Put the parameters in the HTML (upload) page inside the applet tag. Note that the names of the parameters can be different than the parameters of MyUploader

dtbackgroundColor
dtcompressionQuality
dtdebug
dtdividerLocation
dterrorURL
dterrorURLTarget
dticonCancel
dticonShowAllSelected
dticonUpload
dtimageInterpolation
dtlanguage
dtlookAndFeel
dtmaxFiles
dtmaxRetries
dtmaxThumbnailHeight
dtmaxThumbnailWidth
dtmaxUploadImageHeight
dtmaxUploadImageWidth
dtmaxUploadThumbnailHeight
dtmaxUploadThumbnailWidth
dtshowCookies
dtsuccessURL
dtsuccessURLTarget
dtuploadDirectory
dtuploadURL (required)
dtwaitForNextRetry


backgroundColor (optional) top
description: Defines the background color. The color must be given in hexidecimal format.
since: version 1.0
format: hexidecimal
default: #ffffff (white)
example: #ffffff
tag example: <param name="backgroundColor" value="#ffffff">

compressionQuality (optional) top
description: Defines the compression quality for a jpeg image in case the image has been resized. To enable resizing see the parameter maxUploadImageHeight. The compressionQuality can have a value between 0 and 100.
since: version 1.0
format: integer between 0 and 100
default: 75
example: 100
tag example: <param name="compressionQuality" value="100">

debug (optional) top
description: Enables debug logging in the Java Console.
since: version 1.0
format: true or false
default: false
example: true
tag example: <param name="debug" value="true">

dividerLocation (optional) top
description: Defines the position of the divider.
since: version 1.0
format: integer
default: 190
example: 150
tag example: <param name="dividerLocation" value="150">

errorURL (optional) top
description: By default a popup will be given with an error message in case an error has occurred. If the parameter 'errorURL' is defined no popup will be given but the user is redirected to the defined URL. This parameter is necessary if you want to use a custom error page.
since: version 1.0
format: An absolute or relative URL
default: no default
example: http://www.mycompany.com/error.html
tag example: <param name="errorURL" value="http://www.mycompany.com/error.html">

errorURLTarget (optional) top
description: A string indicating where to display the error page. Possible values:
"_self"Show the error page in the window and frame that contain the applet.
"_parent"Show the error page in the applet's parent frame. If the applet's frame has no parent frame, acts the same as "_self".
"_top"Show the error page in the top-level frame of the applet's window. If the applet's frame is the top-level frame, acts the same as "_self".
"_blank"Show the error page in a new, unnamed top-level window.
<name>Show the error page in the frame or window named <name>. If a target named <name> does not already exist, a new top-level window with the specified name is created, and the document is shown there.
since: version 1.0
format: String
default: _self
example: _self
tag example: <param name="errorURLTarget" value="_self">

iconCancel (optional) top
description: Adds an icon to the cancel button.
since: version 1.0
format: An absolute or relative URL.
default: no default
example: http://www.mycompany.com/images/cancel.gif
tag example: <param name="iconCancel" value="http://www.mycompany.com/images/cancel.gif">

iconShowAllSelected (optional) top
description: Adds an icon to the 'show all selected' button.
since: version 1.0
format: An absolute or relative URL.
default: no default
example: http://www.mycompany.com/images/showallselected.gif
tag example: <param name="iconShowAllSelected" value="http://www.mycompany.com/images/showallselected.gif">

iconUpload (optional) top
description: Adds an icon to the upload button.
since: version 1.0
format: An absolute or relative URL.
default: no default
example: http://www.mycompany.com/images/upload.gif
tag example: <param name="iconUpload" value="http://www.mycompany.com/images/upload.gif">

imageInterpolation (optional) top
description: Defines the resize algorithm. Possible values are:
1 awt (default, more sharp than 3 and more smooth than 5, requires low memory, slow)
2 one-step bilinear (poor quality, requires more memory than 1, very fast)
3 multiple-step bilinear (smooth images, requires more memory than 1, 2 and 4)
4 one step bicubic (poor quality, requires more memory than 1, very fast)
5 multiple-step bicubic (sharp images, requires more memory than 1, 2 and 4)
since: version 1.0
format: integer
default: 1
example: 1
tag example: <param name="imageInterpolation" value="1">

language (optional) top
description: MyImageUploader is available in:

- Czech(cz)
- Danish(da)
- Dutch(nl)
- English(en)
- Greek(el)
- Italian(it)
- French(fr)
- German(de)
- Hungarian(hu)
- Norwegian(no)
- Polish(pl)
- Portuguese(pt)
- Romanian(ro)
- Spanish(es)
- Swedish(sv)
- Turkish(tr)

If this parameter is not used the language of the operating system will be used. If this language is not available than English will be used.
format: cz, da, nl, de, el, en, it, fr, hu, no, pl, pt, ro, es, sv, tr
default: en
example: de
tag example: <param name="language" value="de">

lookAndFeel (optional) top
description: Defines the look and feel. By default the Windows look and feel is used. If the Windows look and feel is not available than the default Java look and feel will be used. The Windows look and feel is not available on Linux and Mac computers.
since: version 1.0
format: The class name of the look and feel
default: com.sun.java.swing.plaf.windows.WindowsLookAndFeel
example: javax.swing.plaf.metal.MetalLookAndFeel
tag example: <param name="lookAndFeel" value="javax.swing.plaf.metal.MetalLookAndFeel">

maxFiles (optional) top
description: Defines the maximum number of files that can be uploaded.
since: version 1.0
format: integer
default: free edition: 3, standard edition: unlimited
example: 10
tag example: <param name="maxFiles" value="10">

maxRetries (optional) top
description: If during the upload an error occurs MyImageUploader tries to resume the upload automatically. This parameter defines the number of attempts MyImageUploader should do before an error message is displayed.
since: version 1.0
format: integer
default: 3
example: 5
tag example: <param name="maxRetries" value="5">

maxThumbnailHeight (optional) top
description: Defines the maximum height of the thumbnail which is displayed in MyImageUploader.
since: version 1.0
format: integer
default: 80
example: 100
tag example: <param name="maxThumbnailHeight" value="100">

maxThumbnailWidth (optional) top
description: Defines the maximum width of the thumbnail which is displayed in MyImageUploader.
since: version 1.0
format: integer
default: 80
example: 100
tag example: <param name="maxThumbnailWidth" value="100">

maxUploadImageHeight (optional) top
description: Images can be resized before the upload. This parameter defines the maximum height of a resized image. To enable resizing both parameters 'maxUploadImageHeight' and 'maxUploadImageWidth' must be defined.
since: version 1.0
format: integer
default: no default
example: 600
tag example: <param name="maxUploadImageHeight" value="600">

maxUploadImageWidth (optional) top
description: Images can be resized before the upload. This parameter defines the maximum width of a resized image. To enable resizing both parameters 'maxUploadImageHeight' and 'maxUploadImageWidth' must be defined.
since: version 1.0
format: integer
default: no default
example: 800
tag example: <param name="maxUploadImageWidth" value="800">

maxUploadThumbnailHeight (optional) top
description: A thumbnail can be uploaded together with the original (or resized) image. This parameter defines the maximum height of the thumbnail. To enbale the upload of thumbnails both parameters 'maxUploadThumbnailHeight' and 'maxUploadThumbnailWidth' must be defined.
since: version 1.0
format: integer
default: no default
example: 60
tag example: <param name="maxUploadThumbnailHeight" value="60">

maxUploadThumbnailWidth (optional) top
description: A thumbnail can be uploaded together with the original (or resized) image. This parameter defines the maximum width of the thumbnail. To enbale the upload of thumbnails both parameters 'maxUploadThumbnailHeight' and 'maxUploadThumbnailWidth' must be defined.
since: version 1.0
format: integer
default: no default
example: 80
tag example: <param name="maxUploadThumbnailWidth" value="80">

showCookies (optional) top
description: Logs the cookies in the Java Console.
since: version 1.0
format: true or false
default: false
example: true
tag example: <param name="showCookies" value="true">

successURL (optional) top
description: After the images have been successfully uploaded, the user is redirected to the success URL (confirmation page). In case this parameter is not used a popup will be displayed with the message: 'Upload completed'.
since: version 1.0
format: An absolute or relative URL
default: no default
example: http://www.mycompany.com/upload/successpage.html
tag example: <param name="successURL" value="http://www.mycompany.com/upload/successpage.html">

successURLTarget (optional) top
description: A string indicating where to display the success (confirmation) page. Possible values:
"_self"Show the success page in the window and frame that contain the applet.
"_parent"Show the success page in the applet's parent frame. If the applet's frame has no parent frame, acts the same as "_self".
"_top"Show the success page in the top-level frame of the applet's window. If the applet's frame is the top-level frame, acts the same as "_self".
"_blank"Show the success page in a new, unnamed top-level window.
<name>Show the success page in the frame or window named <name>. If a target named <name> does not already exist, a new top-level window with the specified name is created, and the document is shown there.
since: version 1.0
format: String
default: _self
example: _self
tag example: <param name="successURLTarget" value="_self">

uploadDirectory (optional) top
description: Defines the upload directory on the server. By default files are stored in the variable $baseDirectory. This variable is used in the server side code. E.g. in the php script that proccesses the uploaded images. If the parameter 'uploadDirectory' is defined than the images are stored in <$baseDirectory>/<uploadDirectory>.
since: version 1.0
format: String
default: no default
example: images
tag example: <param name="uploadDirectory" value="images">

uploadURL (required) top
description: The URL of the web server - where the files will be uploaded.
since: version 1.0
format: An absolute or relative URL
default: no default
example: http://www.mycompany.com/upload.php
tag example: <param name="uploadURL" value="http://www.mycompany.com/upload.php">

waitForNextRetry (optional) top
description: If an error occurs MyImageUploader tries to resume the upload automatically. This parameter defines the period in milliseconds between two attempts.
since: version 1.0
format: integer (milliseconds)
default: 1000
example: 1500
tag example: <param name="waitForNextRetry" value="1500">

dot