node实现图片上传multer报错MulterError: Unexpected field

问题遇到的现象和发生背景

node实现图片上传multer报错MulterError: Unexpected field

img

问题相关代码,请勿粘贴截图
<form
              id="form"
              method="POST"
              action="http://localhost:8888/addimg?_csrf={{ ctx.csrf | safe }}"
              encType="multipart/form-data"
              target="myIframe"
            >
              <input name="title" style={{ width: "0", border: "none" }} />
              <input
                style={{ width: "0" }}
                id="file"
                onChange={selectImg}
                name="imgs"
                type="file"
              />
            </form>
            <iframe
              name="myIframe"
              id="myIframe"
              style={{ display: "none" }}
            ></iframe>

img

img

运行结果及报错内容

img

我的解答思路和尝试过的方法

更换过name,但是没成功

我想要达到的结果

https://blog.csdn.net/Jackson23333/article/details/81530588

已自己解决,就是有两个上传图片的,换了两个不同的名字,写的两个不同的方法