updating a deployment - uploaded images gets deleted after redeployment to google cloud
问题 So I have a node js web app, this web app has a folder to store images uploaded by users from a mobile app. How I upload the image to the folder is by using the image's base64 string, and using fs.writeFile to save the image to the folder, like this: fs.writeFile(__dirname + '/../images/complaintImg/complaintcase_' + data.cID + '.jpg', Buffer.from(data.complaintImage, 'base64'), function (err) { if (err) { console.log(err); } else { console.log("success"); } }); The problem is, whenever the