Home > Blockchain >  Does apps script DriveApp and it's associated classes provide a way to add a new version to a f
Does apps script DriveApp and it's associated classes provide a way to add a new version to a f

Time:12-01

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);
}
  • Related