Home > Backend Development > PHP Tutorial > UE编辑器部署到服务器后 上传图片显示找不到临时文件异常

UE编辑器部署到服务器后 上传图片显示找不到临时文件异常

WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWB
Release: 2016-06-13 12:04:49
Original
1588 people have browsed it

UE编辑器部署到服务器后 上传图片显示找不到临时文件错误
 结合网络资源,找到原因:配置php.ini的;upload_tmp_dir ="C:/upload/temp",也就是服务器的C盘upload文件下的子文件夹temp,我相应设置了完全控制权限,读写都有【upload、temp文件夹都是】,然后我重启服务器。。。还是提示,到底是什么原因呢?
------解决方案--------------------
看看上传的文件大小有没有超过配置里限制的大小
------解决方案--------------------
找不到临时文件 是 ue 的自定义错误信息
产生的条件是:
if (!file_exists($file['tmp_name'])) {
            $this->stateInfo = $this->getStateInfo("ERROR_TMP_FILE_NOT_FOUND");
当报错级别为 E_ALL ^ E_NOTICE 时
对于 没有文件被上传 UPLOAD_ERR_NO_FILE 其值为 4
同样要报这个错误

所以你应该设法看到 php 的原始错误信息,这样才能准确的判断问题的所在
file_put_contents('test.txt', print_r($_FILES, 1));
观察 test.txt 文件内容


------解决方案--------------------
应该是环境的问题,主要是tmp_name这个路径

Related labels:
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template