ActiveXPowUpload 1.2.0.5
Parameters
  Home page
Contact support

Download file list parameters

Download_URL_#

Download_RelPath_#

Download_FileName_#

Download_Size_#

Using special parameters you can fill download list.

For example, the following html code fills download list with two URLs.

<OBJECT id="ActiveXPowUpload" CLASSID="CLSID:FB98CEED-9DE1-4517-B30C-CDA19C6D150B">
	<PARAM name="Download_URL_0" value="http://www.somehost.com/dir1/dir2/a.html">
	<PARAM name="Download_RelPath_0" value="dir1">  
	<PARAM name="Download_FileName_0" value="file1.html"> 
	<PARAM name="Download_Size_0" value="1234"> 
	<PARAM name="Download_URL_1" value="http://www.somehost2.com/dir1/dir2/b.html">
	<PARAM name="Download_RelPath_1" value="dir2"> 
	<PARAM name="Download_FileName_1" value="file2.html"> 
	<PARAM name="Download_Size_1" value="1000000"> 
</OBJECT>

The same effect could be achieved with jscript code:

<OBJECT id="ActiveXPowUpload" CLASSID="CLSID:FB98CEED-9DE1-4517-B30C-CDA19C6D150B">
</OBJECT>
<script language="jscript">
	ActiveXPowUpload.AddDownloadFile("http://www.somehost.com/dir1/dir2/a.html", "dir1", "file1.html", 1234);
	ActiveXPowUpload.AddDownloadFile("http://www.somehost2.com/dir1/dir2/b.html", "dir2", "file2.html", 1000000);
</script>

There are four sets of parameters "Download_URL_#", "Download_RelPath_#", "Download_FileName_#", "Download_Size_#" where "#" must be replaced with a number. The "Download_URL_#" parameter used to specify a URL to download, the "Download_RelPath_#" parameter specifies the corresponding Relative Path. The "Download_FileName_#" parameter specifies the file name to use to save the file. The "Download_Size_#" parameter specifies server file size in bytes. "Download_RelPath_#", "Download_FileName_#" and "Download_Size_#" are optional. Value of the "Download_RelPath_#" parameter assumed to be an empty string when the parameter is absent. That means that downloaded file will be saved in the Download Folder directly.

The "Download_Size_#" parameter has no default value. If it is not specified, file size is not defined.

"Download_URL_#" parameters must form a consecutive sequence of interger numbers starting from 0. For example, "Download_URL_0", "Download_URL_1", "Download_URL_2", "Download_URL_3". If there is a gap in a sequence, the parameters following the gap will not be found. For example, for parameters set "Download_URL_0", "Download_URL_1", "Download_URL_4", "Download_URL_5" only "Download_URL_0", "Download_URL_1" paremeters will be found.

Values of the "Download_URL_#", "Download_RelPath_#", "Download_FileName_#", and "Download_Size_#" parameters must adhere to the rules developed for AddDownloadFile's parameters. Malformed URLs, Relative Paths, File Names, Sizes will be silently skipped.

Note: There aren't properties named "Download_URL_#", "Download_RelPath_#", "Download_FileName_#", or "Download_Size_#". These parameters solely for use inside an object tag.