webman上传图片目前是一张一张上传,后期可以一次性上传多图吗?类似下面代码的操作

leizong

<form action="" enctype="multipart/form-data" method="post">
<input type="file" name="image[]" multiple/>
<input type="submit" value="提交" />
</form>

1314 1 0
1个回答

walkor 打赏

composer require workerman/workerman ^v4.0.32 更新workerman到 ^v4.0.32

  • leizong 2022-03-29

    群主,还是不行啊,我试了一下,我这不好截图,我把报错信息发一下
    ErrorException: array_walk_recursive() expects parameter 2 to be a valid callback, array must have exactly two members in E:\WWW\webman\vendor\workerman\workerman\Protocols\Http\Request.php:577

  • walkor 2022-03-29

    函数写错了,更新到 composer require workerman/workerman ^v4.0.33

年代过于久远,无法发表回答
×
🔝