Take Photo > Upload to Google Drive > Get file ID

INTRO

Quick and simple:

GOOGLE APPS SCRIPT (WEB APP)

function doPost(e) {

    var data = Utilities.base64Decode(e.parameters.data);
    var blob = Utilities.newBlob(data, e.parameters.mimetype, e.parameters.filename);
    var fileID = DriveApp.getFolderById(e.parameters.folderId).createFile(blob).getId();
    return ContentService.createTextOutput(fileID);

    }


BLOCKS

You may want to rotate and / or resize the image before uploading....


You can use this image convertor extension for that