📜  无法解码 base64 cloudinary - 无论代码示例

📅  最后修改于: 2022-03-11 14:56:00.896000             🧑  作者: Mango

代码示例1
I had encountered the same issue . Just send the bas64 file as json and not as formData . step 1 : app.use(express.json({ limit: "50mb" })); app.use(express.urlencoded({ limit: "50mb", extended: true }));

step 2 : since you are converting the image on onChange event the file is converted to base64 . so just send that data as json .