Search Persits Software Knowledge Base

 

Article PS060821155

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)

Created: 8/21/2006 1:59:03 PM
Last Modified: 8/21/2006 1:59:03 PM

Copyright © Persits Software, Inc. 1998 - 2018
For technical support, write to support@persits.com.