Monday, 2 March 2015

adding Google Drive Download Button to your site

Get the Link of your file from Google Drive. Suppose, in my case its . Then add following to your html/javascript to your site.

<!DOCTYPE html>

<script src= "></script>
<!--This script include google drive api-->


    <div class= "g-savetodrive"  <!--This class name is needed-->
         data-src = ""
         <!--remember this is the link to our file.-->  
         <!--default file name or any other file name                        with which you want to save the file-->
         data-sitename= "yoursitename"> 



No comments:

Post a Comment