Without using Advanced Drive Services, is it possible to add a new version to a Drive file in Apps Script?
CodePudding user response:
How about this:
function openfilechangecontents(x) {
const file = DriveApp.getFileById("id");
file.setContent(x);
}