我也碰到过同样的问题,后在
www.steve-oh.com/blog/index.php/2008/07/11/docman-14-rc3-error-uploading-directory-problem-fix/ 找到解决方法。解决思路和楼上差不多,不过还在你们的基础上补充了一条,如下:
=======================================================
Solution:
In “com_docman/includes/files.php”, line 177
remove DOCMAN_Utils::stripslashes() function:
- incorrect: $file_upload = mosGetParam(DOCMAN_Utils::stripslashes($_FILES), ‘upload’);
- correct: $file_upload = mosGetParam($_FILES, ‘upload’);
In “com_docman/includes_frontend/upload.http.php”, line 38
remove DOCMAN_Utils::stripslashes() function:
- incorrect: $file = mosGetParam(DOCMAN_Utils::stripslashes($_FILES), ‘upload’);
- correct: $file = mosGetParam($_FILES, ‘upload’);
And instead: In “com_docman/classes/DOCMAN_file.class.php”, line 352
add DOCMAN_Utils::stripslashes() function:
- incorrect: $name = $file;
- correct: $name = DOCMAN_Utils::stripslashes($file);