ismailisimba / ladhaafrikabackend

2 stars 0 forks source link

please How do i use this #1

Open Harfho opened 4 weeks ago

Harfho commented 4 weeks ago

Came across this when looking for ways to upload file without sign in on google , please how do i use it

ismailisimba commented 3 weeks ago

Hey, glad to be of help. You can avoid requiring sign in/sign up to Google to upload files to Google Drive. But, you will still need a Google account. In your Google account, create a Google Sheet, then go to Extensions > Apps Script, a new Apps Script project will be created. From there, just create a HTML form and link it to the doPost function in your Apps Script. The form will send the files as base64 and you can use the inbuilt functions to convert it into binary you can save to Google Drive.

Look at fileFunctions.js and Code.js to see this functionality.

If you get stuck, let me know, I can create a small demo for easy deployment.