Blogger Information
Blog 20
fans 1
comment 1
visits 30601
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
[error:Symfony\Component\HttpFoundation\File\UploadedFile:private] => 6 上传图片解决方法
大瓶可乐
Original
760 people have browsed it

当我们使用Symfony框架上传图片的时候会报这个错误

1.png

主要是找不到临时文件,这个时候我们打开php.ini找到upload_tmp_dir

给他设置一个位置 upload_tmp_dir = /www/wwwroot/tmp 就可以搞定了!

Statement of this Website
The copyright of this blog article belongs to the blogger. Please specify the address when reprinting! If there is any infringement or violation of the law, please contact admin@php.cn Report processing!
All comments Speak rationally on civilized internet, please comply with News Comment Service Agreement
0 comments
Author's latest blog post