Last modified: 2012-04-12 13:55:36 UTC
Upload fails everytime, with a very clean install also.The error message is like "could not rename file from /tmp/filename.ext to /images/**/*/filename.ext A working solution is to execute what's written hereunder: Edit: ../includes/filepro/FSRepo.php -> line 428 Change: if (!rename( $srcPath, $dstPath ) ) { $status->error( 'filerenameerror', $srcPath, $dstPath ); $good = false; } In: if ( !move_uploaded_file( $srcPath, $dstPath ) ) { $status->error( 'filerenameerror', $srcPath, $dstPath ); $good = false; }
This presumably is because of safemode related restrictions. Changing rename to move_uploaded_file will break other upload stuff. An option would be to not pass File::DELETE_SOURCE in UploadBase::performUpload and do the cleanup ourselves in Upload::unsaveTempFile.
Problem solved. This issue had to do with the wiki not installed in the /wiki folder and with a VCL (?) that needed exceptions. Now everything is working, with the code above reverted to original.