im using multer for saving user uploaded files in disk storage.
var storage = multer.diskStorage({
destination: function (req, file, cb) {
cb(null, 'files');
},
filename: function (req, file, cb) {
cb(null, Date.now() + '-' +file.originalname );//1534235345345-promis.pdf
}
});
const upload=multer({
storage:storage
});
so when ever service instance is stopped in the SAP cloud cockpit, files saved in disk are automatically deleted when we restart the service instance. Is there any way to store the uploaded files permanently in the disk.