php后台无法上传图片_往流科技
您的位置: 主页 > 网站建设观点 > php后台无法上传图片

php后台无法上传图片

发布时间:2023-08-04 09:30:15 | 发布者:往流科技

在服务器中找到 php.ini文件中,将路径修改为:


 


; Whether to allow HTTP file uploads.
file_uploads = On


; Temporary directory for HTTP uploaded files (will use system default if not
; specified).
;upload_tmp_dir =
upload_tmp_dir="c:/php/temp"


; Maximum allowed size for uploaded files.
upload_max_filesize = 2M




将temp文件夹user权限添加 “写入”即可