How can I Store any Picture Directly to my Google Drive and get the URL?

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…

  1. I believe you can achieve it via apps script
  2. add the scripts in any googlesheet , deploy. Convert your picture into base64
  3. upload the file into googledrive then get url

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.

Step 1: Create Google Apps Script for Drive Upload

1. Go to https://script.google.com and start a new project.

2. Paste this code:

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);

    }

3. Save it and click Deploy > Manage deployments.

  • Click + New deployment
  • Select Web App
  • Set:
    • Execute as: Me
    • Who has access: Anyone
  • Click Deploy and allow permissions.
  • Copy the web app URL — you’ll use this in Kodular.

:mobile_phone: Step 2: Kodular Blocks Setup

:package: Blocks.

extension for encode the image :
com.sunny.Filey.aix (10.6 KB)
(thanks to @vknow360)

if helpful mark as solution.