Google script: Download web image and save it in a specific drive folder
问题 I need to download an image with GS and save it in a specific drive folder. I'm able to save the image in the root folder but i cannot save it in a specific folder: function downloadFile(fileURL,folder) { var fileName = ""; var fileSize = 0; var response = UrlFetchApp.fetch(fileURL, {muteHttpExceptions: true}); var rc = response.getResponseCode(); if (rc == 200) { var fileBlob = response.getBlob() var folder = DriveApp.getFoldersByName(folder); if (folder != null) { var file = DriveApp