首页 > 代码库 > Bugzilla不能上传附件解决方法

Bugzilla不能上传附件解决方法

</pre>Bugzilla不能上传附件解决方法</h1><div><span style="font-size:18px">环境:win7、Bugzilla</span></div><div><span style="font-size:18px">错误提示:</span><span style="font-size:18px">CGI.pm open of tmpfile </span><img src=http://www.mamicode.com/"file:///C:/Users/student/AppData/Local/Temp/%W@GJ$ACOF(TYDYECOKVDYB.png" alt="" style="font-size:18px" />//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.>
改为
<span style="font-family:FangSong_GB2312;font-size:12px;"># HARD-CODED LOCATION FOR FILE UPLOAD TEMPORARY FILES.
# UNCOMMENT THIS ONLY IF YOU KNOW WHAT YOU'RE DOING.
<span style="color:#ff0000;">$CGITempFile::TMPDIRECTORY = 'C:/temp';</span></span>
<span style="font-family:FangSong_GB2312;font-size:18px;">保存即可。</span>

Bugzilla不能上传附件解决方法