From: Zac E. <Zac...@me...> - 2007-08-31 17:24:45
|
so last week I was trying to get my 1.2.1 install to write uploads to the correct ./uploads/UserName/ path. after playing with it some I noticed getUploadFilePath wasn't returning an ending slash which was odd since it was explicitly coded. function getUploadFilePath() { if (defined('UPLOAD_FILE_PATH')) return UPLOAD_FILE_PATH; return defined('PHPWIKI_DIR') ? PHPWIKI_DIR . "/uploads/" : realpath(dirname(__FILE__) . "/../uploads/"); } so not wanting to figure out why I just added a slash during the UpLoad.php and everything worked great. $file_dir .= "/"; if (UPLOAD_USERDIR) { now I migrated to 1.3.14 and again, same issue, writing to uploadsUserName instead of uploads/UserName, but what is even weirder is that it fails to actually write the file because ERROR uploading '1.txt': Only files with the extension 7z , avi , bmp , bz2 , c , cfg , diff , doc , gif , h , ini , jpeg , jpg , kmz , mp3 , patch , pdf , png , ppt , rar , tar , tar.gz , txt , xls , zip are allowed. .. ::boggle:: so it writes the incorrect DIR (this is a default 1.3.14 install, just downloaded it again last night) AND disallows the file. I can't think of where to look for a fix as I'm looking at code that should work. this has to be a deeper issue. any ideas on what to report to help debug it? thanks rhel4 php-4.3.9-3.9 php-ldap-4.3.9-3.9 php-mysql-4.3.9-3.9 php-gd-4.3.9-3.9 php-pear-4.3.9-3.9 |