Home  >  Article  >  Backend Development  >  在新浪云上Ueditor上传图片揭示文件保存出错

在新浪云上Ueditor上传图片揭示文件保存出错

WBOY
WBOYOriginal
2016-06-13 11:59:421117browse

在新浪云上Ueditor上传图片提示文件保存出错
在使用ueditor时保存文件出错,在Uploader.class.php文件的

<br />  if ( $this->stateInfo == $this->stateMap[ 0 ] ) {<br />            if ( !move_uploaded_file( $file[ "tmp_name" ] , $this->fullName ) ) {<br />                $this->stateInfo = $this->getStateInfo( "MOVE" );<br />            }<br />        }<br />

处一直提示保存出错,当我直接把$this->fillName改成自己新浪云
上的绝对路径/Public/Uploads/Images/123.jpg时,还是提示文件名保存错误。
实在是不知道怎么解决这个问题了
------解决方案--------------------
他有自己的上传组件
move_uploaded_file 不可用了
------解决方案--------------------
具体可以设置下断点调试,如果是上传的文件错误,
改成http://avatar.csdn.net/E/2/9/1_zy205817.jpg路径试试,
顺便打印$file[ "tmp_name" ]看看。

------解决方案--------------------
新浪云有开发文档,情人这阅读。连接就不贴了,没必要替人家做广告
新浪云文件上传
其中 http://www.oschina.net/question/932809_91373?sort=time 回复三 的代码就是

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn