文件上传报错:Unknown: file created in the system's temporary directory

Posted wscsq789

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了文件上传报错:Unknown: file created in the system's 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后,错误提示好了。

技术图片

 

以上是关于文件上传报错:Unknown: file created in the system's temporary directory的主要内容,如果未能解决你的问题,请参考以下文章

Redis 报错:Invalid argument during startup: unknown conf file parameter

上传文件报错种类

java中远程http文件上传及file2multipartfile

Warning: File upload error - unable to create a temporary file in Unknown on line 0

php-fpm启动报错:libgearman.so.8: No such file or directory in Unknown on line 0

ftp上传文件报错:ftp recv: 553 Could not create file.