Save csv to Google Drive

from the screen where I view the content of the csv I need to upload to google drive

I managed to change the name and upload the file
When I open the content I only display the content of the extension string, not the content of the csv

I think I'm doing something wrong

Do you have any example?

Example aia project:

Simple_UAFTGD_CSV.aia (26.6 KB)

This project uses this script:

function doPost(e) {
    var data = Utilities.base64Decode(e.parameters.data);
    var blob = Utilities.newBlob(data, e.parameters.mimetype, e.parameters.filename);
    var fileID = DriveApp.createFile(blob).getId();
    return ContentService.createTextOutput(fileID);
    }

which returns the ID of the file.

1 Like

perfect
thank you TIMAI2

image

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.