Google Drive Generate Direct Download Link
Branch: master
Clone or download
Latest commit ceb87f9 Jun 5, 2018
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
libraries/Gdirect fix case sensitive Jun 4, 2018
README.md first Jun 4, 2018

README.md

gdirect

Codeigniter library to get direct download of Google Drive file link

Usage

Load Library

$this->load->library('gdirect');

Request a download

// true: redirect download
// false: string output
$this->gdirect->generateLink('DRIVE_ID', false);

Get the File ID

$this->gdirect->get_driveid_from_url('https://drive.google.com/open?id=16NdH7CuNnt4FUkakL7R61D0XptKMoSyC')
// output: 16NdH7CuNnt4FUkakL7R61D0XptKMoSyC

Demo