Google Launches ‘Save to Drive’ Button to Save Files Directly To Drive

Updated on

Google has launched the all new Save to Drive button for Google Drive users. This button can be added on your site, and you can start saving files from sites that have already implemented this button.

The best part of this new offering from Google is that implementing this button is a piece of cake for anyone. You just need to add two lines of HTML code to your site, and voila, you’ll be able to see the Drive button. For Google Drive users, this means that they can save files to their account by just a click.

gdrive

To add the button to your website, simply add the script as well as the HTML tag, as shown below:

<script src=”http://apis.google.com/js/plusone.js”></script>
<div
data-filename=”My Statement.pdf”
data-sitename=”My Company Name”
data-src=”/path/to/myfile.pdf”>
</div>

You can also use the Save to Drive button’s JavaScript API, which gives more “programmatic and flexible control” to the button.

“The Save to Drive button works in the context of the user’s browser. This allows your users to save files that could require some form of HTTP authorization – such as a session cookie – without any special customization from you.”

To learn more, you can view the technical documentation from here. Google has also advised users to post their questions on Stack overflow.

It seems like Google wants us to use the Google Drive often. This Save to Drive button is useful not just for the webmasters but also for users (or site visitors). With this button, there’s no need to right-click on the content and then select a place to save the file to the computer. Just a click and the file will be saved to the logged-in user’s Google Drive account.

sgd

Google says that the Save to Drive button is supported on the same browsers as Google Drive on the web. It supports the following browsers:

  • Chrome
  • Firefox
  • Safari
  • Internet Explorer (IE9 and IE10)

Go ahead, try out this new Save to Drive button and let us know your opinion on it.

Leave a Comment