Firefox truncates filenames that contain spaces at the first occurrence of a space if private filesystem is enabled.
The issue is explained here: http://kb.mozillazine.org/Filenames_with_spaces_are_truncated_upon_download
I think the end of function filefield_file_download($file) needs to be altered to enclose the filename in quotes, like this:
return array(
'Content-Type: '. $type .'; name='. $name,
'Content-Length: '. $file->filesize,
'Content-Disposition: '. $disposition .'; filename="'. $name . '"' ,
'Cache-Control: private',
);
Comments
Comment #1
quicksketchGreat catch! Quotes applied. Note that it's a good idea to install the Transliteration module to prevent spaces and special characters entirely in filenames (since they'll be used in URLs).