设为首页 加入收藏

TOP

文件上传报错:Unknown: file created in the system's temporary directory
2019-09-17 15:04:54 】 浏览:52
Tags:文件 上传 Unknown: file created the system' temporary directory

nginx+php下文件上传成功,但会有错误提示如下:

<b>Notice</b>:  Unknown: file created in the system's temporary directory in <b>Unknown</b> on line <b>0</b><br />

网上搜索相关资料发现可能和php下临时文件存放目录配置有关,查看进入php.ini配置文件

 

配置文件搜索upload_tmp_dir,默认/var/temp,mac pro下该目录不存在。而我上传的目录是/Users/xxx/www/data目录,改成/Users/xxx/www/data目录重启php-fpm后,错误提示好了。

 

】【打印繁体】【投稿】【收藏】 【推荐】【举报】【评论】 【关闭】 【返回顶部
上一篇file_get_contents('php://in.. 下一篇laravel中间件的实现原理

最新文章

热门文章

Hot 文章

Python

C 语言

C++基础

大数据基础

linux编程基础

C/C++面试题目