Bugzilla不能上传附件
环境:win7、Bugzilla错误提示:CGI.pm open of tmpfile \\CGItemp5760/QQ.png failed: No such file or directory ;
一种解决方法:在C盘创建一个文件夹temp;找到CGI.pm文件,路径为C:/bugzilla/lib/CGI.pm,用记事本打开CGI.pm,找到变量CGITempFile::TMPDIRECTORY
# HARD-CODED LOCATION FOR FILE UPLOAD TEMPORARY FILES.
# UNCOMMENT THIS ONLY IF YOU KNOW WHAT YOU'RE DOING.
# $CGITempFile::TMPDIRECTORY = '/usr/tmp';
改为:
# HARD-CODED LOCATION FOR FILE UPLOAD TEMPORARY FILES.
# UNCOMMENT THIS ONLY IF YOU KNOW WHAT YOU'RE DOING.
$CGITempFile::TMPDIRECTORY = 'c:/temp';
就可以了。