生产环境:
iis7+php7.1
报错记录
PHP Warning: File upload error - unable to create a temporary file in Unknown on line 0
Message: cURL error 0: The cURL request was retried 3 times and did not succeed. The most likely reason for the failure is that cURL was unable to rewind the body of the request and subsequent retries resulted in the same error. Turn on the debug option to see what went wrong. See https://bugs.php.net/bug.php?id=47204 for more information. (see http://curl.haxx.se/libcurl/c/libcurl-errors.html)
报错原因
服务端无法创建临时文件
解决方法
step1:
修改php.ini
添加配置upload_tmp_dir = d:/temp
sys_temp_dir = "d:/tmp"
step2:D盘下创建temp和tmp文件