From: gpetty <gp...@ao...> - 2006-07-06 04:01:03
|
Earlier, I mentioned that upload was not working in my version of phpwiki. A '/' was being left out of the path, so that test.png gets uploaded to uploadstest.png instead of uploads/test.png. So here's a simple fix. Not sure if it's the best one or even whether anyone else was having this problem, but it at least works for us: rcs_id('$Id: UpLoad.php,v 1.19 2005/04/11 19:40:15 rurban Exp $'); > diff -C2 UpLoad.php UpLoad.php~ *** UpLoad.php Mon Jul 3 23:05:28 2006 --- UpLoad.php~ Sun Sep 11 14:51:29 2005 *************** *** 99,103 **** extract($args); ! $file_dir = getUploadFilePath().'/'; //$url_prefix = SERVER_NAME . DATA_PATH; --- 99,103 ---- extract($args); ! $file_dir = getUploadFilePath(); //$url_prefix = SERVER_NAME . DATA_PATH; -- View this message in context: http://www.nabble.com/Upload-fix-tf1898463.html#a5193449 Sent from the phpwiki-talk forum at Nabble.com. |