Skip to content

This is a sort of form that uploads files to Google Drive using the Google Drive API and Node.js.

Notifications You must be signed in to change notification settings

Gasoil-Gfx/fileupload-form-to-googledrive

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

fileupload-form-to-googledrive

This is a sort of form that uploads files to Google Drive using the Google Drive API and Node.js.

IMPORTANT: You need to download the googlekey.json file from the Google Developers Console and place it in the root directory of this project.

This repository contains an example of how to upload files to Google Drive using the Google Drive API and Node.js.

Create a new project in the Google Cloud Console.

Enable the Google Drive API for your project.

Create credentials for a service account with the following steps:

  • In the Google Cloud Console, navigate to the APIs & Services > Credentials page.
  • Click Create credentials > Service account key.
  • Select JSON as the key type and click Create.
  • Save the generated JSON file to your local machine.

Share the desired Google Drive folder with the email address of the service account that you just created. The email address can be found in the downloaded JSON file.

Create a new file named .env in the root directory of the project and add the variable: GOOGLE_API_FOLDER_ID=YOUR_GOOGLE_DRIVE_FOLDER_ID_HERE.

About

This is a sort of form that uploads files to Google Drive using the Google Drive API and Node.js.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published