%NextDownloadWebFilename%

Used by the Internet - Download Web File action if the filename stripped from the URL contains invalid characters. Assign a filename to this variable before using the "Internet - Download Web File" action to download a file from a URL that involves redirection.

Note: The contents of the variable must be a filename and a filename only.

Normally the "Internet - Download Web File" action retrieves the filename from the URL that was specified, and saves the downloaded file under that name automatically. This works fine if the URL is something like:

http://www.indigorose.com/myfile.zip

...where the filename is contained in the URL (i.e. myfile.zip).

But it doesn't work if the filename isn't provided in the URL, or the URL contains invalid characters, like in the following "redirected" URL:

http://www.indigorose.com/route.php?pid=ams40patch&src=indigo

This URL passes two parameters to a PHP script that then "redirects" the browser to the appropriate file. Since the filename isn't contained in the URL itself, the "Internet - Download Web File" action wouldn't know what filename to save the file as. It would attempt to use "route.php?pid=ams40patch&src=indigo" as the filename, but since that string contains characters that aren't valid in Windows filenames, the action would fail.

The solution in such cases is to store a filename in the %NextDownloadWebFilename% variable before the "Internet - Download Web File" action is performed. Whenever the "Internet - Download Web File" action encounters a situation where it can't get a valid filename from the URL, it will use any filename provided in the %NextDownloadWebFilename% variable instead. (If the %NextDownloadWebFilename% variable doesn't contain a filename, the action will fail.)