简体   繁体   English

php无法上传文件 - 缺少临时文件夹

[英]php cant upload file - Missing a temporary folder

I have a file upload form that used to work without any problems but now gives the error我有一个文件上传表单,以前可以正常工作,但现在出现错误

Missing a temporary folder.缺少临时文件夹。

Missing a Temporary Folder 缺少临时文件夹

According to the link above I added upload_tmp_dir = "/ var / tmp" to the php.ini file, but it still displays the same message and the file is not uploaded.根据上面的链接,我在php.ini文件中添加了upload_tmp_dir = "/ var / tmp" ,但它仍然显示相同的消息并且文件没有上传。

php v: 7.4 php v: 7.4

I believe you have the right solution, it looks like the path is just wrong.我相信你有正确的解决方案,看起来路径是错误的。

I believe it should be我相信应该是

upload_tmp_dir = "/var/tmp"

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM