Persits Software, Inc. Knowledge Base Articles

Downloading files containing spaces in Firefox

Problem Description

When the SendBinary method is used to download a file from the server, filenames containing spaces are truncated if the Firefox browser is used. For example, the file "rose garden.txt" will be downloaded as just "rose".

Solution

Use SendBinary's last optional argument to specify the filename enclosed in double-quote characters (ASCII 34), as follows:

Path = "c:\path\rose garden.txt"
Name = "rose garden.txt"

Upload.SendBinary Path, True, , True, chr(34) & Name & chr(34)