我是怎么解决了论坛的文件上传过程中出现I⼀O错误的

2025-05-05 01:54:58
推荐回答(1个)
回答1:

打开dz目录下的 uc_client/client.php 文件,找到如下:

$uc_avatarflash = UC_API.'/images/camera.swf?inajax=1&appid='.UC_APPID.'&input='.$uc_input.'&agent='.md5($_SERVER['HTTP_USER_AGENT']).'&ucapi='.urlencode(str_replace('http://', '', UC_API)).'&avatartype='.$type;

将这段代码改成:

$uc_avatarflash = UC_API.'/images/camera.swf?inajax=1&appid='.UC_APPID.'&input='.$uc_input.'&agent='.md5($_SERVER['HTTP_USER_AGENT']).'&ucapi='.urlencode(UC_API).'&avatartype='.$type;

试试这个方法