logo


Parameters - MyFileDownloader
Below you will find a list of parameters. With these parameters MyFileDownloader can be configured. Put the parameters in the HTML (download) page inside the applet tag.

dtbackgroundColor
dtbase64Encoded
dtdownloadLabel
dtfileName
dticonDownload
dtlanguage
dtlinkColor
dtlookAndFeel
dtmaxRetries
dtmd5
dtprimaryDownloadURL
dtsecondaryDownloadURL
dtshowArrowIcon
dtsuccessURL
dttarget
dttimeout


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

base64Encoded (optional) top
description: Indicates that the parameters primaryDownloadURL and secondaryDownloadURL are base64encoded.
since: version 1.2
format: true or false
default: false
example: true
tag example: <param name="base64Encoded" value="true">

downloadLabel (optional) top
description: The text on the download button.
format: string
default: Download
example: Download Apache 2.3 Mb
tag example: <param name="downloadLabel" value="Download Apache 2.3 Mb">

fileName (optional) top
description: The name of the file that will be downloaded. If this parameter is not present the name will be extracted from the 'primaryDownloadURL'. The file is saved with this name.
format: string
default: The filename that is part of the primaryDownloadURL
example: myvideo.mpg
tag example: <param name="fileName" value="myvideo.mpg">

iconDownload (optional) top
description: Adds an icon to the download button.
format: An absolute or relative URL.
default: no default
example: download.gif
tag example: <param name="iconDownload" value="download.gif">

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

- Bulgarian(bg)
- Chinese Simplified(zh_CN)
- Chinese Traditional(zh_TW)
- Czech(cz)
- Danish(da)
- Dutch(nl)
- English(en)
- Finnish(fi)
- Greek(el)
- Icelandic(is)
- Italian(it)
- Japanese(ja)
- French(fr)
- German(de)
- Korean(ko)
- Norwegian(no)
- Polish(pl)
- Portuguese(pt)
- Russian(ru)
- Spanish(es)
- Swedish(sv)
- Turkish(tr)

If this parameter is not used then the language of the operating system will be used. If this language is not available English will be used. See for more information example 2 of the installation page.
format: bg, cz, da, de, el, en, it, fi, fr, is, ja, ko, nl, no, pl, pt, es, ru, sv, tr, zh_CN, zh_TW
default: en
example: de
tag example: <param name="language" value="de">

linkColor (optional) top
description: The color of the links. The progress bar of the file downloader contains two links, the pause and cancel link.
format: hexidecimal
default: #0000ff (blue)
example: #ff0000
tag example: <param name="linkColor" value="#ff0000">

lookAndFeel (optional) top
description: Defines the look and feel. Possible values are '1' (default Java Metal look and feel), '2' (Windows look and feel) and '3' (Nimbus look and feel). The Nimbus look-and-feel is part of the Java Plugin version 1.6.0_10 and newer.
format: 1, 2 or 3
default: 1
example: 2
tag example: <param name="lookAndFeel" value="2">

maxRetries (optional) top
description: If an error occurs during the download MyFileDownloader tries to resume the download automatically. If 'maxRetries' errors has occurred the user will see an error message.
format: integer
default: 5
example: 10
tag example: <param name="maxRetries" value="10">

md5 (optional) top
description: Checks the md5 hash sum of the downloaded file. If the calculated md5 sum of the downloaded file is not equal to the md5 sum of the parameter an error is shown.
format: hexidecimal
default: no default
example: 03e0a99a5de0f3f568a0087fb9993af9
tag example: <param name="md5" value="03e0a99a5de0f3f568a0087fb9993af9">

primaryDownloadURL (required) top
description: The download URL of the file. If during the download an error occurs MyFileDownloader automatically resumes the download from 'secondaryDownloadURL'. If the 'secondaryDownloadURL' is not present the file downloader resumes the download from the 'primaryDownloadURL'.
format: an absolute URL
default: no default
example: http://www.javaatwork.com/myuploader-free.zip
tag example: <param name="primaryDownloadURL" value="http://www.javaatwork.com/myuploader-free.zip">

secondaryDownloadURL (optional) top
description: The download URL of the file. If during the download an error occurs MyFileDownloader automatically resumes the download from 'primaryDownloadURL'.
format: an absolute URL
default: no default
example: http://www.javaatwork.com/myuploader-free.zip
tag example: <param name="secondaryDownloadURL" value="http://www.javaatwork.com/download/myuploader-free.zip">

showArrowIcon (optional) top
description: Shows an arrow icon with the links.
format: true or false
default: false
example: true
tag example: <param name="showArrowIcon" value="true">

successURL (optional) top
description: After a successful download a dialog will be displayed as default with the message 'download completed'. When you use 'successURL' the user will be redirected to a success / confirmation page.
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">

target (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.
format: String
default: _self
example: _self
tag example: <param name="target" value="_self">

timeout (optional) top
description: The time in seconds when the download will be interrupted in case MyFileDownloader doesn't receive a response from the server. MyFileDownloader automatically resumes the download from the 'secondaryDownloadURL' when the download is interrupted. If the 'secondaryDownloadURL' is not defined the file downloader tries to reconnect and to resume the download from the 'primaryDownloadURL'.
format: integer
default: 5 seconds
example: 10
tag example: <param name="timeout" value="10">

dot