Skip to content
Download files directly to google drive from the link | PHP Project
PHP
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
css
google-api-php-client
FormUploadToGoogleDrive.php
LinkUploadToGoogleDrive.php
LinkUploadToServer.php
README.md
index.php

README.md

SaveToDrive

Simple PHP scripts for downloading files to server or google drive from link.

  1. Download file directly to the server from the link. (LinkUploadToServer.php)
  2. Upload file directly to google drive using upload form. (FormUploadToGoogleDrive.php)
  3. Download file directly to google drive from the link. (LinkUploadToGoogleDrive.php)

#How to use

  1. Download the SaveToDrive
  2. Open LinkUploadToGoogleDrive.php file
  3. Enable the Google Drive API (If not already done) as you will require the client_id, client_secret and uri
    a. Refer link: Enable Google Drive API (step-1)
  4. Finally edit the following details in the file:
    a. Copy <CLIENT_ID> from the Google developer console
    b. Copy <CLIENT_SECRET> from the Google developer console
    c. Edit <COMPLETE_URL_OF_LinkUploadToGoogleDrive.php>

Demo example

Link: save2drive.MyTechBlog.in
Then select the third link to download file directly to google drive from link.

You can’t perform that action at this time.