Vanilla 1 is no longer supported or maintained. If you need a copy, you can get it here.
HackerOne users: Testing against this community violates our program's Terms of Service and will result in your bounty being denied.

Attachment 1.4 problem

edited December 2006 in Vanilla 1.0 Help
Hi,

O/S: Fedora RC5
Apache 1.3
PHP 4.4

I activate the extension.
Upload file from Windows XP no problem with file that have name without whitespace ("helloworlditsme.doc").

If i try upload file with whitespace name ("hello world its me.doc"), i get error.

It will strip other word, left only "hello.doc".

this is my fix how to overcome the problem.
function DownloadAttachment($CommentID, $AttachmentFile) { $FileName = $CommentID. '.' .$AttachmentFile; $FolderPath = $this->UploadPath . $FileName; $SaveAsFilename = substr(strstr(basename($FolderPath), "."), 1); //remove the original code // replace with new code header("Pragma: public"); header("Expires: 0"); header("Cache-Control: must-revalidate, post-check=0, pre-check=0"); header("Cache-Control: public"); header("Content-Description: File Transfer"); header('Content-Disposition: attachment; filename="'.$SaveAsFilename.'"'); header("Content-Transfer-Encoding: binary"); header("Content-Length: ".(string)(filesize($FolderPath))); @readfile($FolderPath); die(); }

Hope this will help who get same problem with me.
This discussion has been closed.