问题描述
你好,我正在使用 redux-form wizzard,我正在尝试将图像上传到我的 nodejs 服务器。 这是我提交的代码
<Form
onSubmit={async (values) => {
console.log(values.img);
console.log(values.img[0]);
console.log(values);
setShowLoader(false);
const [,err] = await queryServerApi(
"deliveryman/add",values,"POST",false
);
if (err) {
setShowLoader(false);
setError({
visible: true,message: JSON.stringify(err.errors,null,2),});
}
}}
/>
这是结果 console result
问题是图像没有从前端上传(reactjs)。这不是后端问题,因为通过后端上传工作正常
解决方法
暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!
如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。
小编邮箱:dio#foxmail.com (将#修改为@)