Hii, I need to make a small app to pickup / Select profile picture image and store in google drive. Can you help?
Better to Without extension…
Also I want to Resize Without extension…
Hii, I need to make a small app to pickup / Select profile picture image and store in google drive. Can you help?
Better to Without extension…
Also I want to Resize Without extension…
i hope timAi2 has plenty of codes in his site or you may have idea to do so after visiting his tutorials
@TimAi2 guides will help you
Hey Piush,
As mentioned, using Google Apps Script with a linked Google Sheet is probably your best option if you want to avoid extensions. You’ll need to convert the image to base64, send it to the script, and have the script handle the upload and return the file URL. TimAi2’s guides are a solid place to start.
here is your solution.
REPLACE folder id
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('Google Drive Folder ID').createFile(blob).getId();
return ContentService.createTextOutput(fileID);
}
extension for encode the image :
com.sunny.Filey.aix (10.6 KB)
(thanks to @vknow360)
if helpful mark as solution.