Bugzilla不能上传附件解决方法

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';

就能够了。

posted on 2017-05-24 16:15  ljbguanli  阅读(227)  评论(0编辑  收藏  举报