欢迎各位兄弟 发布技术文章
这里的技术是共享的
//初始
public function getFileInfo()
{
return array(
"state" => $this->stateInfo,
"url" => $this->fullName,
"title" => $this->fileName,
"original" => $this->oriName,
"type" => $this->fileType,
"size" => $this->fileSize
);
}
//修改为
public function getFileInfo()
{
return array(
"state" => $this->stateInfo,
"url" => 'http://'.$_SERVER['HTTP_HOST'].$this->fullName,
"title" => $this->fileName,
"original" => $this->oriName,
"type" => $this->fileType,
"size" => $this->fileSize
);
}
可以上传看看了
来自 http://www.wordg.com/?p=28